Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.67ms] Passed 4 tests
This is a short check of server-side resources used by CodeShop Amazon Affiliate
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 33.71 ▼6.45 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.70 ▲2.61 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.33 ▲0.55 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.82 ▲3.74 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.43 ▼3.37 |
Server storage [IO: ▲1.90MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 260 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CodeShop Amazon Affiliate
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.28 ▼1.11 | 1.62 ▼0.13 | 42.41 ▲1.77 |
Dashboard /wp-admin | 2,206 ▲15 | 4.84 ▼0.06 | 110.68 ▲3.06 | 42.11 ▼2.98 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.01 | 40.56 ▲0.18 | 36.63 ▼2.26 |
Add New Post /wp-admin/post-new.php | 1,533 ▲122 | 23.66 ▲5.64 | 622.90 ▼21.11 | 56.80 ▲7.01 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▲0.04 | 93.96 ▼3.78 | 39.34 ▼3.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 130× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Amazon\\ProductAdvertisingAPI\\v1\\com\\amazon\\paapi5\\v1\\ModelInterface' not found in wp-content/plugins/codeshop-amazon-affiliate/lib/paapi5/src/com/amazon/paapi5/v1/ContentRating.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Amazon\\ProductAdvertisingAPI\\v1\\com\\amazon\\paapi5\\v1\\ModelInterface' not found in wp-content/plugins/codeshop-amazon-affiliate/lib/paapi5/src/com/amazon/paapi5/v1/ImageSize.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/codeshop-amazon-affiliate/lib/paapi5/vendor/guzzlehttp/psr7/src/InflateStream.php:17
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/codeshop-amazon-affiliate/lib/paapi5/vendor/guzzlehttp/promises/src/TaskQueue.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Amazon\\ProductAdvertisingAPI\\v1\\com\\amazon\\paapi5\\v1\\ModelInterface' not found in wp-content/plugins/codeshop-amazon-affiliate/lib/paapi5/src/com/amazon/paapi5/v1/DurationPrice.php:28
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/codeshop-amazon-affiliate/lib/paapi5/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Amazon\\ProductAdvertisingAPI\\v1\\com\\amazon\\paapi5\\v1\\ModelInterface' not found in wp-content/plugins/codeshop-amazon-affiliate/lib/paapi5/src/com/amazon/paapi5/v1/TradeInInfo.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/codeshop-amazon-affiliate/admin/views/add_amazonshop_submenu_settings_callback.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/codeshop-amazon-affiliate/lib/paapi5/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Amazon\\ProductAdvertisingAPI\\v1\\com\\amazon\\paapi5\\v1\\ModelInterface' not found in wp-content/plugins/codeshop-amazon-affiliate/lib/paapi5/src/com/amazon/paapi5/v1/MinReviewsRating.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: amazon affiliate, monetize posts, amazon associate, amazon products api, store...
codeshop-amazon-affiliate/codeshop-amazon-affiliate.php 92% from 13 tests
The main PHP script in "CodeShop Amazon Affiliate" version 3.1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 480 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected33,931 lines of code in 245 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 220 | 6,127 | 20,521 | 27,728 |
Markdown | 10 | 1,006 | 0 | 3,211 |
JSON | 7 | 0 | 0 | 2,332 |
CSS | 5 | 14 | 13 | 380 |
JavaScript | 2 | 28 | 32 | 271 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 12.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 143.00 |
Average method complexity | 1.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 15 | |
Traits | 2 | |
Classes | 168 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 168 | 100.00% |
▷ Final classes | 8 | 4.76% |
Methods | 2,447 | |
▷ Static methods | 557 | 22.76% |
▷ Public methods | 2,305 | 94.20% |
▷ Protected methods | 9 | 0.37% |
▷ Private methods | 133 | 5.44% |
Functions | 161 | |
▷ Named functions | 59 | 36.65% |
▷ Anonymous functions | 102 | 63.35% |
Constants | 323 | |
▷ Global constants | 4 | 1.24% |
▷ Class constants | 319 | 98.76% |
▷ Public constants | 319 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
amazonshop-templates/assets/images/amazon-icon.png | 1.51KB | 0.90KB | ▼ 40.53% |