Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.92MB] [CPU: ▲10.72ms] 75% from 4 tests
Server-side resources used by Auto Affiliate Links
Please fix the following
- CPU: Total CPU usage must kept under 500.00ms (currently 871.71ms on /wp-admin/admin.php?page=aal_apimanagement)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.39 ▲0.93 | 57.56 ▲18.14 |
Dashboard /wp-admin | 4.25 ▲0.95 | 53.47 ▲6.91 |
Posts /wp-admin/edit.php | 4.31 ▲0.95 | 53.67 ▲6.34 |
Add New Post /wp-admin/post-new.php | 6.81 ▲0.93 | 105.07 ▲20.79 |
Media Library /wp-admin/upload.php | 4.11 ▲0.88 | 43.65 ▲11.50 |
API Management /wp-admin/admin.php?page=aal_apimanagement | 4.05 | 871.71 |
Envato Marketplace Links /wp-admin/admin.php?page=aal_module_envato | 4.07 | 39.02 |
Commission Junction Links /wp-admin/admin.php?page=aal_module_cj | 4.07 | 40.02 |
General Settings /wp-admin/admin.php?page=aal_general_settings | 4.09 | 42.88 |
Walmart Links /wp-admin/admin.php?page=aal_module_walmart | 4.07 | 38.71 |
Shareasale Links /wp-admin/admin.php?page=aal_module_shareasale | 4.07 | 42.69 |
Import/Export /wp-admin/admin.php?page=aal_import_export | 4.08 | 37.70 |
Exclude Words /wp-admin/admin.php?page=aal_exclude_words | 4.08 | 36.58 |
Auto Affiliate Links - Check urls /wp-admin/admin.php?page=aal_urlcheck | 4.08 | 37.89 |
Ebay Links /wp-admin/admin.php?page=aal_module_ebay | 4.07 | 40.73 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 66 new files
Database: 2 new tables, 14 new options
New tables |
---|
wp_automated_links |
wp_aal_statistics |
New WordPress options |
---|
can_compress_scripts |
aal_target |
aal_showhome |
db_upgraded |
aal_settings_updated |
widget_recent-comments |
widget_recent-posts |
aal_showlist |
widget_aal_widget |
aal_pluginstatus |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Auto Affiliate Links
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲137 | 13.56 ▼1.17 | 1.52 ▼0.05 | 43.05 ▼2.23 |
Dashboard /wp-admin | 2,300 ▲122 | 5.87 ▲0.21 | 97.52 ▼12.88 | 45.90 ▲0.60 |
Posts /wp-admin/edit.php | 2,211 ▲108 | 2.38 ▲0.43 | 45.24 ▲8.92 | 39.76 ▲5.83 |
Add New Post /wp-admin/post-new.php | 6,317 ▲4,791 | 26.19 ▲3.31 | 878.18 ▲258.70 | 38.34 ▼11.58 |
Media Library /wp-admin/upload.php | 1,505 ▲102 | 4.55 ▲0.39 | 100.60 ▲4.70 | 46.89 ▲1.78 |
API Management /wp-admin/admin.php?page=aal_apimanagement | 1,242 | 2.15 | 30.22 | 32.53 |
Envato Marketplace Links /wp-admin/admin.php?page=aal_module_envato | 986 | 2.05 | 32.59 | 26.10 |
Commission Junction Links /wp-admin/admin.php?page=aal_module_cj | 954 | 2.18 | 31.28 | 31.71 |
General Settings /wp-admin/admin.php?page=aal_general_settings | 1,598 | 2.69 | 46.15 | 32.96 |
Walmart Links /wp-admin/admin.php?page=aal_module_walmart | 928 | 2.03 | 30.48 | 27.88 |
Shareasale Links /wp-admin/admin.php?page=aal_module_shareasale | 938 | 2.19 | 32.46 | 29.59 |
Import/Export /wp-admin/admin.php?page=aal_import_export | 1,065 | 2.16 | 30.18 | 32.74 |
Exclude Words /wp-admin/admin.php?page=aal_exclude_words | 987 | 2.17 | 31.73 | 28.68 |
Auto Affiliate Links - Check urls /wp-admin/admin.php?page=aal_urlcheck | 883 | 2.04 | 31.45 | 23.67 |
Ebay Links /wp-admin/admin.php?page=aal_module_ebay | 931 | 2.04 | 33.28 | 26.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_aal_widget
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=aal_apimanagement
- > Warning in wp-content/plugins/wp-auto-affiliate-links/aal_apimanagement.php+126
file_get_contents(https://autoaffiliatelinks.com/api/apivalidate.php?apikey=): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-auto-affiliate-links/views/aalLink.php
- 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-auto-affiliate-links/aal_apimanagement.php:14
- > PHP Fatal error
Uncaught Error: Class 'aalModule' not found in wp-content/plugins/wp-auto-affiliate-links/modules/ebay/ebay.php:4
- > PHP Fatal error
Uncaught Error: Class 'aalModule' not found in wp-content/plugins/wp-auto-affiliate-links/modules/walmart/walmart.php:4
- > PHP Fatal error
Uncaught Error: Class 'aalModule' not found in wp-content/plugins/wp-auto-affiliate-links/modules/clickbank/clickbank.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-auto-affiliate-links/aal_install.php:214
- > PHP Fatal error
Uncaught Error: Class 'aalModule' not found in wp-content/plugins/wp-auto-affiliate-links/modules/discoveryjapan/discoveryjapan.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-auto-affiliate-links/aal_excludecats.php:4
- > PHP Fatal error
Uncaught Error: Class 'aalModule' not found in wp-content/plugins/wp-auto-affiliate-links/modules/amazon/amazon.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-auto-affiliate-links/aal_metabox.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-auto-affiliate-links/aal_excludewords.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-auto-affiliate-links ===
)
wp-auto-affiliate-links/WP-auto-affiliate-links.php 92% from 13 tests
Analyzing the main PHP file in "Auto Affiliate Links" version 6.4.2.6
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-auto-affiliate-links.php" instead of "WP-auto-affiliate-links.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
No dangerous file extensions were detected5,625 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 2,523 | 398 | 4,694 |
JavaScript | 6 | 490 | 168 | 869 |
CSS | 2 | 19 | 2 | 62 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 1 | 4.00% |
▷ Public methods | 17 | 68.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 32.00% |
Functions | 98 | |
▷ Named functions | 97 | 98.98% |
▷ Anonymous functions | 1 | 1.02% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/delete.png | 0.56KB | 0.39KB | ▼ 29.30% |
images/blue.png | 2.69KB | 2.15KB | ▼ 19.85% |