Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.93MB] [CPU: ▼33.90ms] Passed 4 tests
An overview of server-side resources used by Amazon Scraper
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.07 ▼4.17 |
Dashboard /wp-admin | 3.01 ▼0.29 | 22.05 ▼26.17 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 24.18 ▼15.56 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 23.27 ▼77.49 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 19.84 ▼16.39 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_amazon_settings |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Amazon Scraper
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 13.90 ▼0.63 | 1.55 ▼0.13 | 36.25 ▼6.92 |
Dashboard /wp-admin | 2,211 ▲34 | 5.52 ▼0.15 | 85.52 ▼14.28 | 39.16 ▼6.19 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.02 ▼0.01 | 38.35 ▼1.11 | 35.76 ▼2.39 |
Add New Post /wp-admin/post-new.php | 1,539 ▲1 | 23.30 ▲5.04 | 671.21 ▲26.28 | 52.04 ▼20.97 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.21 ▲0.12 | 95.97 ▼19.92 | 43.47 ▼6.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie tables were found after uninstall: 1 table
- wp_amazon_settings
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/amazon-scraper/amazon-admin.php:6
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/amazon-scraper/settings.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amazon-scraper/amazon-plugin.php:12
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/amazon-scraper/settings.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== amazon-scraper ===
) - Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
amazon-scraper/amazon-plugin.php 85% from 13 tests
The main PHP file in "Amazon Scraper" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("amazon-scraper.php" instead of "amazon-plugin.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 166 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
There were no executable files found in this plugin502 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 127 | 233 | 478 |
CSS | 1 | 5 | 0 | 24 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 60.87% |
▷ Protected methods | 9 | 39.13% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin