Benchmarks
Plugin footprint 65% 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.01MB] [CPU: ▼1.76ms] Passed 4 tests
Server-side resources used by Amazon Product Price
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.33 ▼1.57 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.78 ▼1.82 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 53.30 ▲6.23 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 93.47 ▲1.56 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 31.51 ▼5.20 |
Amazon Settings /wp-admin/options-general.php?page=amazon-setting | 3.20 | 31.63 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_amazon_setting |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
am_db_version |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Amazon Product Price
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.20 ▼1.48 | 1.75 ▼0.07 | 40.92 ▼4.77 |
Dashboard /wp-admin | 2,210 ▲19 | 4.87 ▼0.05 | 103.45 ▼11.75 | 39.26 ▼6.39 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.01 | 40.29 ▲2.28 | 35.37 ▲1.91 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 23.20 ▲0.01 | 604.65 ▼53.74 | 49.97 ▼3.98 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.25 ▲0.00 | 97.31 ▼10.90 | 40.79 ▼3.94 |
Amazon Settings /wp-admin/options-general.php?page=amazon-setting | 867 | 2.02 | 25.73 | 27.30 |
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
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_amazon_setting
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- am_db_version
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/amazon-product-price/amazon-product-price.php on line 11
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/amazon-product-price/amazon-product-price.php:12
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=amazon-setting
- > Network (severe)
wp-content/plugins/amazon-product-price/includes/btn_donate_SM.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #0, #0 in amazon-product-price/assets to your readme.txt
amazon-product-price/amazon-product-price.php Passed 13 tests
This is the main PHP file of "Amazon Product Price" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
100 characters long description:
Generate the short code to enter on the post and get the amazon product price by amazon "Asin" Code.
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
No dangerous file extensions were detected284 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 97 | 142 | 284 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 33.33% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 6 | 66.67% |
▷ Class constants | 3 | 33.33% |
▷ Public constants | 3 | 100.00% |
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