Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/super-buttons/shortcode.php+51
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.46MB] [CPU: ▼50.92ms] Passed 4 tests
Analyzing server-side resources used by Super Buttons
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.52 ▼0.94 | 6.86 ▼35.39 |
Dashboard /wp-admin | 2.54 ▼0.76 | 7.88 ▼39.38 |
Posts /wp-admin/edit.php | 2.54 ▼0.81 | 8.99 ▼40.00 |
Add New Post /wp-admin/post-new.php | 2.54 ▼3.34 | 9.15 ▼88.92 |
Media Library /wp-admin/upload.php | 2.54 ▼0.68 | 7.83 ▼26.58 |
Server storage [IO: ▲7.39MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 42 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_super_buttons_meta |
wp_super_buttons |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
_sb_meta_db |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Super Buttons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲189 | 13.65 ▼0.73 | 10.09 ▲8.44 | 39.85 ▼6.20 |
Dashboard /wp-admin | 2,220 ▲35 | 5.80 ▲0.94 | 103.41 ▼1.55 | 79.71 ▲34.23 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 1.98 ▼0.02 | 33.99 ▼4.11 | 32.45 ▲0.27 |
Add New Post /wp-admin/post-new.php | 6,429 ▲4,904 | 28.86 ▲6.00 | 887.75 ▲224.21 | 38.07 ▼14.63 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.24 ▲0.04 | 100.40 ▼2.26 | 64.65 ▲20.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/super-buttons/shortcode.php+51
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- Zombie tables detected upon uninstall: 2 tables
- wp_super_buttons
- wp_super_buttons_meta
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- _sb_meta_db
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 21× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-buttons/admin/import.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-buttons/admin/ajax/button/title.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-buttons/admin/ajax/settings.php:34
- > PHP Fatal error
require(): Failed opening required 'SUPER_BUTTONS__PLUGIN_DIRcss.php' (include_path='.:/usr/share/php') in wp-content/plugins/super-buttons/functions.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-buttons/admin/export.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-buttons/admin/ajax.php:29
- > PHP Warning
require(SUPER_BUTTONS__PLUGIN_DIRcss.php): failed to open stream: No such file or directory in wp-content/plugins/super-buttons/functions.php on line 9
- > PHP Warning
require(SUPER_BUTTONS__PLUGIN_DIRadmin/fonts.php): failed to open stream: No such file or directory in wp-content/plugins/super-buttons/admin/functions.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/super-buttons/shortcode.php:100
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-buttons/admin/admin.php:82
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
5 plugin tags: gutenberg buttons, share buttons, social buttons, buttons, wordpress buttons
super-buttons/super-buttons.php Passed 13 tests
Analyzing the main PHP file in "Super Buttons" version 1.4.0
38 characters long description:
The best buttons plugin for WordPress.
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 detected18,797 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 4,868 | 2,616 | 10,564 |
CSS | 4 | 1,284 | 2,831 | 5,288 |
PHP | 22 | 91 | 686 | 2,597 |
PO File | 1 | 158 | 280 | 348 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 42 | |
▷ Named functions | 38 | 90.48% |
▷ Anonymous functions | 4 | 9.52% |
Constants | 7 | |
▷ Global constants | 7 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/superman.png | 0.92KB | 0.68KB | ▼ 26.53% |