Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.77ms] Passed 4 tests
A check of server-side resources used by Simple Category Posts Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.38 ▼0.56 |
Dashboard /wp-admin | 3.36 ▲0.01 | 45.56 ▼10.43 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.75 ▲1.72 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 81.56 ▼17.81 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.87 ▲3.37 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_p2hc_widget |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Category Posts Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.23 ▼1.15 | 5.12 ▲3.27 | 54.13 ▲12.37 |
Dashboard /wp-admin | 2,215 ▲24 | 4.88 ▼1.02 | 106.72 ▲8.95 | 41.89 ▲3.03 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.08 ▲0.05 | 41.04 ▼5.68 | 36.41 ▲0.53 |
Add New Post /wp-admin/post-new.php | 1,527 ▲8 | 23.43 ▲0.22 | 629.40 ▲43.35 | 50.24 ▲0.22 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.29 ▲0.10 | 96.41 ▼0.82 | 42.34 ▼1.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 successfully, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_p2hc_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
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
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 items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: disable_featured_image in wp-content/plugins/simple-category-posts-widget/inc/p2hc-category-posts-template.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-category-posts-widget/inc/widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/simple-category-posts-widget/simple-category-posts-widget.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-category-posts-widget/inc/register-scripts.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/simple-category-posts-widget/inc/p2hc-category-posts-template.php:11
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: simple category posts widget, post-type posts widget, taxonomy posts widget, category posts widget
simple-category-posts-widget/simple-category-posts-widget.php 92% from 13 tests
"Simple Category Posts Widget" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 249 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected6,166 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 3 | 67 | 0 | 2,712 |
JavaScript | 7 | 204 | 36 | 2,431 |
CSS | 5 | 68 | 36 | 693 |
PHP | 4 | 40 | 52 | 236 |
JSON | 2 | 0 | 0 | 94 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/chosen_v1.6.2/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
js/chosen_v1.6.2/docsupport/oss-credit.png | 4.30KB | 3.26KB | ▼ 24.02% |
js/chosen_v1.6.2/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
js/chosen_v1.6.2/docsupport/chosen.png | 1.47KB | 2.08KB | 0.00% |