Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.84ms] Passed 4 tests
Analyzing server-side resources used by Widgets for Amazon
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.54 ▲2.74 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.11 ▼1.57 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.65 ▼0.71 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 77.75 ▼13.76 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.35 ▲0.70 |
Widgets for Amazon /wp-admin/tools.php?page=widgets_for_amazon | 3.23 | 32.57 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Widgets for Amazon
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.23 ▼0.33 | 2.01 ▲0.49 | 43.97 ▲4.26 |
Dashboard /wp-admin | 2,196 ▲22 | 5.55 ▲0.02 | 81.96 ▼5.61 | 40.55 ▼1.36 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 1.96 ▲0.01 | 33.40 ▼3.02 | 35.42 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 18.47 ▼4.57 | 619.49 ▼24.31 | 61.63 ▲2.80 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▲0.03 | 94.87 ▼5.99 | 38.93 ▼6.05 |
Widgets for Amazon /wp-admin/tools.php?page=widgets_for_amazon | 1,461 | 2.00 | 23.99 | 28.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
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
Everything seems fine, however this is by no means 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function WidgetsForAmazon\\plugin_dir_path() in wp-content/plugins/widgets-for-amazon/widgets-for-amazon.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: widget, amazon, affiliate, widgets, search...
widgets-for-amazon/widgets-for-amazon.php Passed 13 tests
The entry point to "Widgets for Amazon" version 1.0.27 is a PHP file that has certain tags in its header comment area
31 characters long description:
Widgets for Amazon by eggnstone
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 plugin1,072 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 136 | 78 | 738 |
JavaScript | 1 | 35 | 3 | 176 |
CSS | 1 | 22 | 0 | 158 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 27 | 100.00% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 21 | 100.00% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin