Benchmarks
Plugin footprint 65% 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 gracefully, with no errors
Server metrics [RAM: ▲0.43MB] [CPU: ▼1.72ms] Passed 4 tests
An overview of server-side resources used by Amazon Product in a Post Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.14 ▲0.68 | 39.87 ▲1.45 |
Dashboard /wp-admin | 4.00 ▲0.70 | 53.65 ▲6.53 |
Posts /wp-admin/edit.php | 4.11 ▲0.76 | 58.39 ▲13.42 |
Add New Post /wp-admin/post-new.php | 5.55 ▼0.34 | 65.72 ▼24.38 |
Media Library /wp-admin/upload.php | 3.92 ▲0.69 | 42.32 ▲9.54 |
Getting Started /wp-admin/admin.php?page=apipp-main-menu | 3.90 | 36.83 |
Shortcodes/Blocks /wp-admin/admin.php?page=apipp_plugin-shortcode | 3.99 | 39.21 |
New Amazon Post /wp-admin/admin.php?page=apipp-add-new | 3.90 | 39.58 |
Button Settings /wp-admin/admin.php?page=apipp_plugin-button-url | 3.93 | 49.05 |
FAQs/Help /wp-admin/admin.php?page=apipp_plugin-faqs | 3.97 | 38.26 |
Plugin Settings /wp-admin/admin.php?page=apipp_plugin_admin | 3.90 | 44.03 |
Product Cache /wp-admin/admin.php?page=apipp-cache-page | 3.89 | 34.37 |
Server storage [IO: ▲3.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 111 new files
Database: 1 new table, 12 new options
New tables |
---|
wp_amazoncache |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
apipp_dbversion |
widget_recent-comments |
theysaidso_admin_options |
apipp_amazon_debugkey |
appip_encodemode |
widget_theysaidso_widget |
apipp_amazon_cache_sec |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Amazon Product in a Post Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,062 ▲316 | 13.23 ▼1.53 | 1.59 ▼0.23 | 40.57 ▼0.53 |
Dashboard /wp-admin | 2,454 ▲266 | 5.84 ▼0.03 | 98.04 ▼16.58 | 42.24 ▲0.38 |
Posts /wp-admin/edit.php | 2,306 ▲217 | 2.13 ▲0.12 | 48.27 ▲9.98 | 37.41 ▲3.78 |
Add New Post /wp-admin/post-new.php | 6,418 ▲4,899 | 28.08 ▲4.77 | 839.60 ▲151.00 | 36.69 ▼19.34 |
Media Library /wp-admin/upload.php | 1,681 ▲296 | 4.29 ▲0.07 | 93.25 ▼9.41 | 44.45 ▼1.13 |
Getting Started /wp-admin/admin.php?page=apipp-main-menu | 1,496 | 2.15 | 26.32 | 28.34 |
Shortcodes/Blocks /wp-admin/admin.php?page=apipp_plugin-shortcode | 2,853 | 2.11 | 40.41 | 30.59 |
New Amazon Post /wp-admin/admin.php?page=apipp-add-new | 1,307 | 2.10 | 40.31 | 63.86 |
Button Settings /wp-admin/admin.php?page=apipp_plugin-button-url | 1,468 | 3.27 | 50.94 | 31.15 |
FAQs/Help /wp-admin/admin.php?page=apipp_plugin-faqs | 2,179 | 2.18 | 23.43 | 52.47 |
Plugin Settings /wp-admin/admin.php?page=apipp_plugin_admin | 2,169 | 1.98 | 27.68 | 53.98 |
Product Cache /wp-admin/admin.php?page=apipp-cache-page | 1,056 | 1.80 | 27.04 | 30.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_amazoncache
- This plugin does not fully uninstall, leaving 12 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- apipp_product_upgraded_version
- apipp_dbversion
- appip_encodemode
- can_compress_scripts
- theysaidso_admin_options
- apipp_amazon_cache_sec
- db_upgraded
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Amazon_Product_Shortcode' not found in wp-content/plugins/amazon-product-in-a-post-plugin/inc/class-shortcode-search.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amazon-product-in-a-post-plugin/inc/aws-signed-request.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amazon-product-in-a-post-plugin/inc/class-add-custom-mce.php:6
- > PHP Fatal error
Uncaught Error: Class 'Amazon_Product_Shortcode' not found in wp-content/plugins/amazon-product-in-a-post-plugin/inc/class-shortcode-elements.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amazon-product-in-a-post-plugin/inc/options.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amazon-product-in-a-post-plugin/inc/tools.php:5
- > PHP Fatal error
Uncaught Error: Class 'Amazon_Product_Shortcode' not found in wp-content/plugins/amazon-product-in-a-post-plugin/inc/class-shortcode-grid.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amazon-product-in-a-post-plugin/inc/aws-signed-request-test.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/amazon-product-in-a-post-plugin/inc/class-featured-image.php:186
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amazon-product-in-a-post-plugin/amazon-product-in-a-post.php:48
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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
4 plugin tags: amazon, amazon affiliate, amazon product, amazon associate
amazon-product-in-a-post-plugin/amazon-product-in-a-post.php 92% from 13 tests
"Amazon Product in a Post Plugin" version 5.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("amazon-product-in-a-post-plugin.php" instead of "amazon-product-in-a-post.php")
Code Analysis 97% from 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 detected27,533 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 7 | 4,165 | 5,639 | 15,723 |
PHP | 20 | 385 | 815 | 9,656 |
JavaScript | 11 | 44 | 78 | 1,378 |
CSS | 6 | 40 | 21 | 760 |
SVG | 1 | 0 | 0 | 16 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 310)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 95.73 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 310.00 |
Average method complexity | 15.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 310.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 20 | 20.00% |
▷ Public methods | 87 | 87.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 13.00% |
Functions | 96 | |
▷ Named functions | 86 | 89.58% |
▷ Anonymous functions | 10 | 10.42% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
45 PNG files occupy 0.80MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/new-buyamzon-button-com.png | 6.43KB | 2.23KB | ▼ 65.40% |
images/signup-step-misc2.png | 46.81KB | 20.22KB | ▼ 56.80% |
images/signup-step2.png | 28.61KB | 10.44KB | ▼ 63.52% |
images/custom-icon.png | 6.78KB | 2.14KB | ▼ 68.39% |
images/signup-step8.png | 34.43KB | 14.42KB | ▼ 58.13% |