Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.10ms] Passed 4 tests
This is a short check of server-side resources used by affilinet Performance Ads
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.07 ▼16.37 |
Dashboard /wp-admin | 3.35 ▲0.04 | 48.18 ▲2.24 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 56.39 ▲12.23 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 83.78 ▼5.70 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.46 ▼0.56 |
Settings /wp-admin/admin.php?page=affilinet_settings | 3.29 | 31.74 |
Start /wp-admin/admin.php?page=affilinet | 3.26 | 32.49 |
Reporting /wp-admin/admin.php?page=affilinet_reporting | 3.34 | 33.75 |
Signup /wp-admin/admin.php?page=affilinet_signup | 3.28 | 30.59 |
affilinet Perf. Ads /wp-admin/options-general.php?page=affilinet_options | 3.26 | 30.13 |
Server storage [IO: ▲1.57MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- Illegal file modification found: 1 file (0.30KB) outside of "wp-content/plugins/affilinet-performance-module/" and "wp-content/uploads/"
- (new file) ads.txt
Filesystem: 72 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_affilinet_performance_ad_widget |
widget_recent-posts |
recovery_mode_email_last_sent |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by affilinet Performance Ads
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲49 | 14.74 ▼0.06 | 1.63 ▼0.31 | 43.10 ▲2.78 |
Dashboard /wp-admin | 2,247 ▲47 | 5.79 ▼0.01 | 106.70 ▼0.39 | 87.97 ▲46.85 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.01 ▼0.02 | 35.33 ▲2.13 | 35.32 ▲1.50 |
Add New Post /wp-admin/post-new.php | 1,552 ▲18 | 17.51 ▼5.53 | 723.24 ▼25.35 | 58.66 ▼10.10 |
Media Library /wp-admin/upload.php | 1,429 ▲47 | 4.26 ▲0.03 | 101.41 ▼23.73 | 81.83 ▲23.93 |
Settings /wp-admin/admin.php?page=affilinet_settings | 717 | 1.53 | 6.37 | 18.61 |
Start /wp-admin/admin.php?page=affilinet | 835 | 1.85 | 27.04 | 31.59 |
Reporting /wp-admin/admin.php?page=affilinet_reporting | 825 | 2.03 | 25.15 | 27.09 |
Signup /wp-admin/admin.php?page=affilinet_signup | 876 | 2.02 | 23.79 | 25.46 |
affilinet Perf. Ads /wp-admin/options-general.php?page=affilinet_options | 717 | 1.53 | 6.56 | 19.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- widget_recent-comments
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_affilinet_performance_ad_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=affilinet_settings
- > Error in wp-content/plugins/affilinet-performance-module/classes/Api.php+23
Uncaught Error: Call to undefined method soapclient::__soapCall() in wp-content/plugins/affilinet-performance-module/classes/Api.php:23
Stack trace:
#0 wp-content/plugins/affilinet-performance-module/classes/Api.php(79): Affilinet_Api::logon()
#1 wp-content/plugins/affilinet-performance-module/views/settings.php(6): Affilinet_Api::checkPartnershipStatus()
#2 wp-content/plugins/affilinet-performance-module/classes/View.php(12): require_once('/var/www/wordpr...')
#3 wp-includes/class-wp-hook.php(310): Affilinet_View::settings()
#4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(517): WP_Hook->do_action()
#6 wp-admin/admin.php(259): do_action()
#7 {main}
thrown- > GET request to /wp-admin/options-general.php?page=affilinet_options
- > Error in wp-content/plugins/affilinet-performance-module/classes/Api.php+23
Uncaught Error: Call to undefined method soapclient::__soapCall() in wp-content/plugins/affilinet-performance-module/classes/Api.php:23
Stack trace:
#0 wp-content/plugins/affilinet-performance-module/classes/Api.php(79): Affilinet_Api::logon()
#1 wp-content/plugins/affilinet-performance-module/views/settings.php(6): Affilinet_Api::checkPartnershipStatus()
#2 wp-content/plugins/affilinet-performance-module/classes/View.php(12): require_once('/var/www/wordpr...')
#3 wp-includes/class-wp-hook.php(310): Affilinet_View::settings()
#4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(517): WP_Hook->do_action()
#6 wp-admin/admin.php(259): do_action()
#7 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#8 {main}
thrown
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/affilinet-performance-module/views/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/affilinet-performance-module/views/start.php:22
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/affilinet-performance-module/classes/Widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/affilinet-performance-module/views/signup.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/affilinet-performance-module/affilinet.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/affilinet-performance-module/views/reporting.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=affilinet
- > Network (severe)
https://www.awin.com/?utm_medium=redirect&utm_source=www.affili.net - Failed to load resource: the server responded with a status of 403 ()
- > GET request to /wp-admin/admin.php?page=affilinet_reporting
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=affilinet_reporting 228:27 Uncaught ReferenceError: affilinet_report_data_views is not defined
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: advertising, affiliate, performance marketing, banner, affilinet
affilinet-performance-module/affilinet.php 85% from 13 tests
The main PHP script in "affilinet Performance Ads" version 1.9.5 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("affilinet-performance-module.php" instead of "affilinet.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin22,004 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 21 | 3,085 | 2,806 | 12,495 |
PHP | 15 | 703 | 2,728 | 6,809 |
Markdown | 6 | 790 | 0 | 2,160 |
PO File | 3 | 200 | 329 | 485 |
JSON | 3 | 0 | 0 | 46 |
make | 1 | 4 | 2 | 6 |
YAML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 64.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 389.00 |
Average method complexity | 8.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 195 | |
▷ Static methods | 25 | 12.82% |
▷ Public methods | 193 | 98.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.03% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/affilinet_logo.png | 4.25KB | 1.85KB | ▼ 56.37% |
images/affilinet_icon.png | 1.30KB | 1.36KB | 0.00% |
images/affilinet_signet.png | 12.96KB | 6.80KB | ▼ 47.52% |
images/affilinet_signet_small.png | 2.16KB | 1.81KB | ▼ 16.09% |