Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.37MB] [CPU: ▲3.33ms] Passed 4 tests
Server-side resources used by EasyAzon - Amazon Associates Affiliate Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.79 ▲1.33 | 46.10 ▲2.82 |
Dashboard /wp-admin | 4.69 ▲1.38 | 59.46 ▲4.37 |
Posts /wp-admin/edit.php | 4.80 ▲1.44 | 57.70 ▲12.10 |
Add New Post /wp-admin/post-new.php | 7.29 ▲1.40 | 90.97 ▲0.09 |
Media Library /wp-admin/upload.php | 4.61 ▲1.38 | 44.65 ▲6.04 |
Settings /wp-admin/admin.php?page=easyazon-settings | 4.83 | 65.48 |
Localization /wp-admin/admin.php?page=easyazon-localization | 4.65 | 60.76 |
Server storage [IO: ▲6.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 571 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
easyazon-version |
can_compress_scripts |
widget_recent-posts |
Browser metrics 75% from 4 tests
EasyAzon - Amazon Associates Affiliate Plugin: an overview of browser usage
Please improve the following
- Nodes: Try to keep the DOM nodes under 25,000 (currently 36,191 on /wp-admin/admin.php?page=easyazon-settings)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,967 ▲181 | 13.52 ▼0.83 | 9.35 ▲7.36 | 37.89 ▼6.15 |
Dashboard /wp-admin | 2,255 ▲75 | 5.60 ▼0.01 | 84.11 ▼13.52 | 36.40 ▼7.67 |
Posts /wp-admin/edit.php | 2,155 ▲55 | 2.04 ▲0.06 | 35.90 ▲2.12 | 34.52 ▼3.08 |
Add New Post /wp-admin/post-new.php | 6,254 ▲4,728 | 25.97 ▲3.05 | 898.91 ▲239.73 | 60.07 ▼5.97 |
Media Library /wp-admin/upload.php | 1,455 ▲55 | 4.27 ▲0.09 | 96.49 ▼2.12 | 42.10 ▼3.63 |
Settings /wp-admin/admin.php?page=easyazon-settings | 36,191 | 2.14 | 80.03 | 346.56 |
Localization /wp-admin/admin.php?page=easyazon-localization | 1,231 | 3.19 | 41.09 | 28.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- easyazon-version
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 230× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function easyazon_collapse_attributes() in wp-content/plugins/easyazon/addition/components/popovers/views/popover.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/easyazon/components/settings-sections/links/views/section.php:1
- > PHP Fatal error
Uncaught Error: Interface 'MaxMind\\WebService\\Http\\Request' not found in wp-content/plugins/easyazon/addition/components/localization/lib/geoip/vendor/maxmind/web-service-common/src/WebService/Http/CurlRequest.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Amazon\\ProductAdvertisingAPI\\v1\\com\\amazon\\paapi5\\v1\\ModelInterface' not found in wp-content/plugins/easyazon/vendor/thewirecutter/paapi5-php-sdk/src/com/amazon/paapi5/v1/ImageType.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Amazon\\ProductAdvertisingAPI\\v1\\com\\amazon\\paapi5\\v1\\ModelInterface' not found in wp-content/plugins/easyazon/vendor/thewirecutter/paapi5-php-sdk/src/com/amazon/paapi5/v1/ExternalIds.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Amazon\\ProductAdvertisingAPI\\v1\\com\\amazon\\paapi5\\v1\\ModelInterface' not found in wp-content/plugins/easyazon/vendor/thewirecutter/paapi5-php-sdk/src/com/amazon/paapi5/v1/VariationSummary.php:28
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/easyazon/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Amazon\\ProductAdvertisingAPI\\v1\\com\\amazon\\paapi5\\v1\\ModelInterface' not found in wp-content/plugins/easyazon/vendor/thewirecutter/paapi5-php-sdk/src/com/amazon/paapi5/v1/OfferListing.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/easyazon/addition/components/popup-states/call-to-action/views/state.php:2
- > PHP Notice
Undefined variable: item in wp-content/plugins/easyazon/addition/components/popovers/views/popover.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: amazon, amazon associate, amazon affiliate
easyazon/easyazon.php Passed 13 tests
"EasyAzon - Amazon Associates Affiliate Plugin" version 5.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
74 characters long description:
Quickly and easily insert Amazon affiliate links into your site's content.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin41,397 lines of code in 433 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 370 | 8,417 | 22,848 | 31,395 |
JSON | 23 | 0 | 0 | 5,386 |
Markdown | 6 | 741 | 0 | 3,400 |
JavaScript | 20 | 210 | 23 | 941 |
CSS | 10 | 37 | 0 | 226 |
XML | 1 | 1 | 0 | 20 |
Dockerfile | 1 | 8 | 0 | 10 |
YAML | 1 | 0 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 10.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 25 | |
Interfaces | 38 | |
Traits | 4 | |
Classes | 326 | |
▷ Abstract classes | 3 | 0.92% |
▷ Concrete classes | 323 | 99.08% |
▷ Final classes | 17 | 5.26% |
Methods | 3,490 | |
▷ Static methods | 873 | 25.01% |
▷ Public methods | 3,078 | 88.19% |
▷ Protected methods | 16 | 0.46% |
▷ Private methods | 396 | 11.35% |
Functions | 391 | |
▷ Named functions | 182 | 46.55% |
▷ Anonymous functions | 209 | 53.45% |
Constants | 412 | |
▷ Global constants | 36 | 8.74% |
▷ Class constants | 376 | 91.26% |
▷ Public constants | 375 | 99.73% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin