Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼291.14ms] Passed 4 tests
Server-side resources used by Advance Widget Pack
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.34 | 56.45 ▲4.39 |
Dashboard /wp-admin | 3.69 ▲0.28 | 34.81 ▲2.08 |
Posts /wp-admin/edit.php | 3.91 ▲0.27 | 39.21 ▲1.46 |
Add New Post /wp-admin/post-new.php | 7.15 ▲0.18 | 94.22 ▼1,168.60 |
Media Library /wp-admin/upload.php | 3.56 ▲0.27 | 25.46 ▲0.49 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_awp_author_list |
widget_awp_feature_post |
widget_awp_popular_post |
widget_author_bio |
widget_awp_random_posts |
widget_awp_recent_posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advance Widget Pack
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,765 ▲7 | 15.90 ▲0.16 | 5.88 ▲0.09 | 2.50 ▼0.19 |
Dashboard /wp-admin | 2,895 ▲37 | 6.15 ▼0.05 | 114.02 ▼20.39 | 156.44 ▼7.45 |
Posts /wp-admin/edit.php | 2,688 ▼3 | 3.23 ▼0.00 | 63.79 ▼0.33 | 142.08 ▲2.17 |
Add New Post /wp-admin/post-new.php | 1,779 ▲89 | 22.11 ▲1.38 | 455.46 ▲6.83 | 162.37 ▲4.51 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.48 ▼0.04 | 145.18 ▲11.95 | 192.05 ▲1.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_awp_feature_post
- widget_awp_author_list
- widget_author_bio
- widget_awp_random_posts
- widget_awp_popular_post
- widget_awp_recent_posts
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 fix the following
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > 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: Class 'WP_Widget' not found in wp-content/plugins/advance-widget-pack/awp-recent-comments.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-random-post.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-popular-post.php:2
- > 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-author-bio.php:2
- > 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 90% 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
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #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: Please reduce the number of tags, currently 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: The principal 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 | There should be no dangerous file extensions present in any WordPress plugin
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
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
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
PNG files should be compressed to save space and minimize bandwidth usage
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-5.png | 10.24KB | 4.20KB | ▼ 59.00% |
screenshot-6.png | 15.66KB | 5.08KB | ▼ 67.60% |
screenshot-3.png | 19.86KB | 6.51KB | ▼ 67.20% |
screenshot-2.png | 8.19KB | 3.40KB | ▼ 58.49% |
screenshot-1.png | 26.81KB | 10.34KB | ▼ 61.44% |