Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.61MB] [CPU: ▼3.84ms] Passed 4 tests
Analyzing server-side resources used by WP Show Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.37 | 45.00 ▼2.44 |
Dashboard /wp-admin | 4.00 ▲0.69 | 58.76 ▲10.35 |
Posts /wp-admin/edit.php | 4.05 ▲0.69 | 51.92 ▼1.39 |
Add New Post /wp-admin/post-new.php | 6.77 ▲0.88 | 90.14 ▼18.52 |
Media Library /wp-admin/upload.php | 3.92 ▲0.69 | 43.89 ▲7.01 |
All Lists /wp-admin/edit.php?post_type=wp_show_posts | 3.96 | 39.89 |
Add New /wp-admin/post-new.php?post_type=wp_show_posts | 4.23 | 45.47 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 72 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_wpsp_widget |
Browser metrics Passed 4 tests
WP Show Posts: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲82 | 14.06 ▼0.31 | 1.88 ▼0.16 | 42.93 ▲0.82 |
Dashboard /wp-admin | 2,222 ▲42 | 5.58 ▼0.07 | 85.37 ▼3.54 | 38.28 ▼10.64 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 2.02 ▲0.01 | 36.30 ▼4.83 | 34.85 ▼0.50 |
Add New Post /wp-admin/post-new.php | 1,551 ▲16 | 22.97 ▲4.68 | 635.52 ▲0.10 | 52.60 ▼14.65 |
Media Library /wp-admin/upload.php | 1,430 ▲33 | 4.37 ▲0.15 | 100.46 ▼3.43 | 46.72 ▲1.64 |
All Lists /wp-admin/edit.php?post_type=wp_show_posts | 1,088 | 2.00 | 32.68 | 34.92 |
Add New /wp-admin/post-new.php?post_type=wp_show_posts | 2,473 | 3.32 | 159.18 | 33.96 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- widget_wpsp_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please take a closer look at the following
- 16× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/wp-show-posts/admin/butterbean/tmpl/nav.php
- > /wp-content/plugins/wp-show-posts/admin/butterbean/tmpl/manager.php
- > /wp-content/plugins/wp-show-posts/admin/butterbean/tmpl/control-radio-image.php
- > /wp-content/plugins/wp-show-posts/admin/butterbean/tmpl/section.php
- > /wp-content/plugins/wp-show-posts/admin/butterbean/tmpl/control-checkboxes.php
- > /wp-content/plugins/wp-show-posts/admin/butterbean/tmpl/control-textarea.php
- > /wp-content/plugins/wp-show-posts/admin/butterbean/tmpl/control-checkbox.php
- > /wp-content/plugins/wp-show-posts/admin/butterbean/tmpl/control-radio.php
- > /wp-content/plugins/wp-show-posts/admin/butterbean/tmpl/control-color.php
- > /wp-content/plugins/wp-show-posts/admin/butterbean/tmpl/control-select-group.php
- 21× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Setting' not found in wp-content/plugins/wp-show-posts/admin/butterbean/inc/settings/class-setting-date.php:20
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/wp-show-posts/admin/butterbean/inc/controls/class-control-palette.php:19
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/wp-show-posts/admin/butterbean/inc/controls/class-control-color.php:20
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/wp-show-posts/admin/butterbean/inc/controls/class-control-select-group.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-show-posts/admin/butterbean/class-butterbean.php:144
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control_Textarea' not found in wp-content/plugins/wp-show-posts/admin/butterbean/inc/controls/class-control-excerpt.php:21
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/wp-show-posts/admin/butterbean/inc/controls/class-control-datetime.php:24
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Setting' not found in wp-content/plugins/wp-show-posts/admin/butterbean/inc/settings/class-setting-datetime.php:20
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/wp-show-posts/admin/butterbean/inc/controls/class-control-parent.php:21
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/wp-show-posts/admin/butterbean/inc/controls/class-control-date.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: display posts shortcode, post columns, portfolio, gallery, show posts
wp-show-posts/wp-show-posts.php 92% from 13 tests
The main PHP script in "WP Show Posts" version 1.1.4 is automatically included on every request by WordPress
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 233 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin5,159 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 53 | 1,047 | 2,605 | 3,457 |
JavaScript | 5 | 288 | 491 | 793 |
CSS | 5 | 107 | 16 | 508 |
Markdown | 4 | 126 | 0 | 401 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 11.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 1 | 4.00% |
Methods | 144 | |
▷ Static methods | 2 | 1.39% |
▷ Public methods | 137 | 95.14% |
▷ Protected methods | 1 | 0.69% |
▷ Private methods | 6 | 4.17% |
Functions | 55 | |
▷ Named functions | 55 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/butterbean/screenshot-1.png | 21.34KB | 10.57KB | ▼ 50.46% |