Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/easy-amazon-product-information/eapi_amazon.php+205
file_get_contents(https://webservices.amazon.de/paapi5/searchitems): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
Server metrics [RAM: ▲0.40MB] [CPU: ▼4.53ms] Passed 4 tests
This is a short check of server-side resources used by Easy Amazon Product Information
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 43.48 ▲3.31 |
Dashboard /wp-admin | 3.70 ▲0.40 | 51.09 ▼6.10 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 49.96 ▼0.35 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.42 | 93.01 ▼13.13 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 39.05 ▲1.47 |
Easy Amazon Product Information /wp-admin/options-general.php?page=easy_amazon_product_information | 3.61 | 38.90 |
Server storage [IO: ▲0.34MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 28 new files
Database: 1 new table, 20 new options
New tables |
---|
wp_easy_amazon_product_information_data |
New WordPress options |
---|
eapi_personal_error |
eapi_picture |
widget_recent-comments |
eapi_button |
widget_recent-posts |
eapi_sidebar |
eapi_version |
db_upgraded |
eapi_negative |
eapi_inter_vall_time_in_hours |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Easy Amazon Product Information
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.72 ▼0.65 | 1.82 ▼0.46 | 44.42 ▼0.34 |
Dashboard /wp-admin | 2,231 ▲43 | 5.10 ▼0.76 | 105.53 ▼13.16 | 39.35 ▼5.69 |
Posts /wp-admin/edit.php | 2,113 ▲21 | 2.31 ▲0.26 | 36.98 ▼6.51 | 32.36 ▼5.21 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 17.77 ▼0.53 | 681.06 ▲42.55 | 37.28 ▼14.32 |
Media Library /wp-admin/upload.php | 1,413 ▲31 | 4.57 ▲0.36 | 109.56 ▲7.59 | 41.67 ▼1.08 |
Easy Amazon Product Information /wp-admin/options-general.php?page=easy_amazon_product_information | 4,997 | 3.81 | 143.49 | 38.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easy-amazon-product-information/easy_amazon_product_information.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== easy-amazon-product-information ===
)
easy-amazon-product-information/easy_amazon_product_information.php 85% from 13 tests
The primary PHP file in "Easy Amazon Product Information" version 4.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("easy-amazon-product-information.php" instead of "easy_amazon_product_information.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 201 characters long)
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
Good job! No executable or dangerous file extensions detected2,351 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 142 | 344 | 1,986 |
PO File | 2 | 167 | 210 | 337 |
CSS | 2 | 0 | 0 | 18 |
JavaScript | 1 | 2 | 0 | 10 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 50.00% |
Functions | 47 | |
▷ Named functions | 47 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 0.21MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/shipping_amazon.png | 4.50KB | 1.69KB | ▼ 62.53% |
images/logo_top.png | 73.88KB | 25.17KB | ▼ 65.93% |
images/eapi_false.png | 1.73KB | 1.16KB | ▼ 32.86% |
images/default.png | 3.68KB | 2.16KB | ▼ 41.30% |
images/logo_top_300_125.png | 8.95KB | 2.72KB | ▼ 69.64% |