Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼3.64ms] Passed 4 tests
This is a short check of server-side resources used by Button
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.25 ▼0.41 |
Dashboard /wp-admin | 3.44 ▲0.13 | 47.66 ▼2.18 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 52.00 ▲4.08 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 81.48 ▼16.05 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 40.45 ▲4.35 |
All Buttons /wp-admin/edit.php?post_type=wd_button | 3.41 | 39.28 |
Add New Button /wp-admin/post-new.php?post_type=wd_button | 3.54 | 48.78 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_wd_button_widget |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Button
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.12 ▼0.55 | 1.69 ▼0.06 | 40.75 ▼4.19 |
Dashboard /wp-admin | 2,206 ▲26 | 5.56 ▼0.08 | 99.19 ▲10.69 | 88.10 ▲47.69 |
Posts /wp-admin/edit.php | 2,132 ▲35 | 1.99 ▲0.01 | 37.90 ▲1.20 | 33.84 ▲2.04 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.44 ▲0.41 | 791.58 ▲166.11 | 88.55 ▲31.25 |
Media Library /wp-admin/upload.php | 1,426 ▲23 | 4.23 ▼0.04 | 110.29 ▲9.67 | 76.19 ▲31.52 |
All Buttons /wp-admin/edit.php?post_type=wd_button | 1,158 | 2.46 | 41.04 | 81.57 |
Add New Button /wp-admin/post-new.php?post_type=wd_button | 4,594 | 3.82 | 145.98 | 144.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_wd_button_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 10× PHP files trigger server errors when accessed directly:
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/button/inc/cpt/button-setting.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/button/inc/cpt/button-setting.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/button/inc/cpt/button-cpt.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/button/inc/enqueue.php:3
- > PHP Notice
Undefined variable: post in wp-content/plugins/button/inc/cpt/button-setting.php on line 2
- > PHP Notice
Undefined variable: post in wp-content/plugins/button/inc/cpt/button-layouts.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/button/inc/dynamic-css.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/button/inc/cpt/button-layouts.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/button/inc/duplicate.php:86
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/button/inc/cpt/button-layouts.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: Too many tags (48 tag instead of maximum 10); only the first 5 tags are used in your directory listing
button/button.php 85% from 13 tests
The principal PHP file in "Button" v. 1.1.26 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
Good job! No executable or dangerous file extensions detected12,511 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 1,806 | 63 | 9,651 |
JavaScript | 7 | 624 | 218 | 1,677 |
PHP | 12 | 240 | 131 | 1,183 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 4.00 |
▷ 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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
20 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/layouts/layout-1.png | 1.21KB | 0.65KB | ▼ 46.40% |
assets/images/layouts/social-set-1.png | 7.72KB | 4.04KB | ▼ 47.67% |
assets/images/layouts/speech-bouble-layout.png | 0.85KB | 0.81KB | ▼ 4.83% |
assets/images/layouts/social-set-7.png | 2.90KB | 2.84KB | ▼ 1.79% |
assets/images/layouts/social-set-3.png | 2.37KB | 2.28KB | ▼ 3.67% |