Benchmarks
Plugin footprint 83% 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.27MB] [CPU: ▼5.47ms] Passed 4 tests
Server-side resources used by Advance Widget Pack
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 46.20 ▲3.12 |
Dashboard /wp-admin | 3.58 ▲0.23 | 50.79 ▼13.17 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 56.48 ▲6.44 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 85.53 ▼12.95 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 38.69 ▲1.13 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_author_bio |
widget_awp_popular_post |
widget_theysaidso_widget |
widget_awp_author_list |
widget_awp_recent_comments |
widget_awp_feature_post |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_awp_recent_posts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advance Widget Pack
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.27 ▼1.11 | 1.62 ▲0.02 | 41.63 ▼1.55 |
Dashboard /wp-admin | 2,209 ▲18 | 5.91 ▲1.02 | 98.01 ▼2.33 | 39.65 ▼5.90 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▲0.03 | 44.57 ▲9.12 | 36.05 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.05 ▼0.33 | 688.82 ▼6.80 | 66.54 ▲3.92 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.13 ▼0.06 | 99.13 ▼22.31 | 46.52 ▼2.03 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 13 options
- theysaidso_admin_options
- widget_author_bio
- widget_recent-posts
- widget_awp_author_list
- widget_awp_recent_posts
- widget_awp_feature_post
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- ...
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advance-widget-pack/awp-author-list.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advance-widget-pack/awp-recent-post.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advance-widget-pack/awp-feature-post.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advance-widget-pack/plugin.php:20
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advance-widget-pack/awp-author-bio.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advance-widget-pack/awp-popular-post.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advance-widget-pack/awp-recent-comments.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advance-widget-pack/awp-random-post.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Author Details widget.), #2 (Author List widget.), #3 (Featured Post widget.), #4 (Popular Post widget.), #5 (Recent Comments widget.), #6 (Recent Posts widget.)
- Tags: There are too many tags (15 tag instead of maximum 10)
advance-widget-pack/plugin.php 92% from 13 tests
Analyzing the main PHP file in "Advance Widget Pack" version 1.0.7
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advance-widget-pack.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,031 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 26 | 21 | 988 |
CSS | 1 | 0 | 0 | 43 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 14.86 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 4.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 10 | 58.82% |
▷ Anonymous functions | 7 | 41.18% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 26.81KB | 10.34KB | ▼ 61.44% |
screenshot-2.png | 8.19KB | 3.40KB | ▼ 58.49% |
screenshot-5.png | 10.24KB | 4.20KB | ▼ 59.00% |
screenshot-6.png | 15.66KB | 5.08KB | ▼ 67.60% |
screenshot-4.png | 19.54KB | 6.30KB | ▼ 67.73% |