Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.70MB] [CPU: ▲3.61ms] Passed 4 tests
An overview of server-side resources used by Hamazon
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.70 | 44.19 ▲4.78 |
Dashboard /wp-admin | 4.01 ▲0.70 | 49.62 ▼1.97 |
Posts /wp-admin/edit.php | 4.12 ▲0.76 | 57.05 ▲10.01 |
Add New Post /wp-admin/post-new.php | 6.59 ▲0.70 | 100.01 ▲2.11 |
Media Library /wp-admin/upload.php | 3.93 ▲0.70 | 42.42 ▲9.50 |
Affiliate Setting /wp-admin/options-general.php?page=wp-hamazon | 3.91 | 37.68 |
Server storage [IO: ▲2.70MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 341 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
hamazon_option_updated |
Browser metrics Passed 4 tests
A check of browser resources used by Hamazon
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.26 ▼1.49 | 1.54 ▼0.26 | 41.86 ▼2.80 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼1.06 | 97.91 ▼16.22 | 39.09 ▼8.56 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.03 | 40.12 ▼1.97 | 35.00 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,517 ▼0 | 17.49 ▼0.07 | 631.53 ▼20.96 | 55.94 ▲8.37 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.19 ▼0.05 | 93.70 ▼8.62 | 40.21 ▼4.99 |
Affiliate Setting /wp-admin/options-general.php?page=wp-hamazon | 1,371 | 6.42 | 164.40 | 100.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- hamazon_option_updated
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 138× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/wp-hamazon/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/wp-hamazon/vendor/thewirecutter/paapi5-php-sdk/src/com/amazon/paapi5/v1/OfferAvailability.php:28
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/wp-hamazon/vendor/guzzlehttp/promises/src/RejectedPromise.php:10
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/wp-hamazon/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Amazon\\ProductAdvertisingAPI\\v1\\com\\amazon\\paapi5\\v1\\ModelInterface' not found in wp-content/plugins/wp-hamazon/vendor/thewirecutter/paapi5-php-sdk/src/com/amazon/paapi5/v1/GetItemsResponse.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Amazon\\ProductAdvertisingAPI\\v1\\com\\amazon\\paapi5\\v1\\ModelInterface' not found in wp-content/plugins/wp-hamazon/vendor/thewirecutter/paapi5-php-sdk/src/com/amazon/paapi5/v1/MinReviewsRating.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Amazon\\ProductAdvertisingAPI\\v1\\com\\amazon\\paapi5\\v1\\ModelInterface' not found in wp-content/plugins/wp-hamazon/vendor/thewirecutter/paapi5-php-sdk/src/com/amazon/paapi5/v1/ItemsResult.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/wp-hamazon/vendor/psr/http-message/src/ResponseInterface.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Amazon\\ProductAdvertisingAPI\\v1\\com\\amazon\\paapi5\\v1\\ModelInterface' not found in wp-content/plugins/wp-hamazon/vendor/thewirecutter/paapi5-php-sdk/src/com/amazon/paapi5/v1/TradeInPrice.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Amazon\\ProductAdvertisingAPI\\v1\\com\\amazon\\paapi5\\v1\\ModelInterface' not found in wp-content/plugins/wp-hamazon/vendor/thewirecutter/paapi5-php-sdk/src/com/amazon/paapi5/v1/ManufactureInfo.php:28
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=wp-hamazon
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/options-general.php?page=wp-hamazon
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
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
4 plugin tags: dmm, amazon, phg, affiliate
wp-hamazon/wp-hamazon.php 92% from 13 tests
The primary PHP file in "Hamazon" version 5.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected50,792 lines of code in 299 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 218 | 5,755 | 21,225 | 28,411 |
JSON | 15 | 0 | 0 | 16,778 |
Markdown | 14 | 1,071 | 0 | 3,434 |
JSX | 13 | 102 | 56 | 848 |
Sass | 6 | 102 | 1 | 693 |
PO File | 1 | 184 | 243 | 367 |
JavaScript | 20 | 14 | 79 | 171 |
XML | 2 | 4 | 0 | 33 |
YAML | 1 | 5 | 8 | 17 |
SVG | 2 | 0 | 1 | 16 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
CSS | 5 | 5 | 13 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 12.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 16 | |
Traits | 2 | |
Classes | 171 | |
▷ Abstract classes | 3 | 1.75% |
▷ Concrete classes | 168 | 98.25% |
▷ Final classes | 13 | 7.74% |
Methods | 2,481 | |
▷ Static methods | 549 | 22.13% |
▷ Public methods | 2,308 | 93.03% |
▷ Protected methods | 31 | 1.25% |
▷ Private methods | 142 | 5.72% |
Functions | 290 | |
▷ Named functions | 133 | 45.86% |
▷ Anonymous functions | 157 | 54.14% |
Constants | 371 | |
▷ Global constants | 44 | 11.86% |
▷ Class constants | 327 | 88.14% |
▷ Public constants | 327 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/button-icon.png | 0.74KB | 0.74KB | 0.00% |
src/img/button-icon.png | 0.85KB | 0.85KB | 0.00% |