Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.49MB] [CPU: ▲1.53ms] Passed 4 tests
An overview of server-side resources used by WordPress Button Plugin MaxButtons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.18 ▲1.45 | 59.17 ▲5.35 |
Dashboard /wp-admin | 5.06 ▲1.50 | 58.05 ▲1.50 |
Posts /wp-admin/edit.php | 5.18 ▲1.50 | 63.47 ▲9.18 |
Add New Post /wp-admin/post-new.php | 7.66 ▲1.51 | 95.28 ▼9.92 |
Media Library /wp-admin/upload.php | 4.99 ▲1.50 | 60.95 ▲21.38 |
Buttons /wp-admin/admin.php?page=maxbuttons-controller | 5.53 | 56.73 |
Settings /wp-admin/admin.php?page=maxbuttons-settings | 5.62 | 51.98 |
Support /wp-admin/admin.php?page=maxbuttons-support | 5.02 | 44.20 |
Add New /wp-admin/admin.php?page=maxbuttons-controller&action=edit | 9.43 | 106.07 |
Upgrade to Pro /wp-admin/admin.php?page=maxbuttons-pro | 5.01 | 46.35 |
Share Buttons /wp-admin/admin.php?page=social-share | 4.98 | 45.97 |
Server storage [IO: ▲4.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 296 new files
Database: 3 new tables, 10 new options
New tables |
---|
wp_maxbuttons_collections |
wp_maxbuttons_collections_trans |
wp_maxbuttonsv3 |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
MBFREE_CREATED |
can_compress_scripts |
maxbuttons_user_level |
MBFREE_HOMEURL |
maxbuttons_version |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress Button Plugin MaxButtons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 14.38 ▼0.05 | 1.82 ▲0.06 | 37.08 ▼7.38 |
Dashboard /wp-admin | 2,218 ▲38 | 5.72 ▲0.09 | 84.88 ▼4.16 | 78.19 ▲38.61 |
Posts /wp-admin/edit.php | 2,141 ▲44 | 1.98 ▼0.01 | 38.00 ▲0.15 | 33.93 ▼0.92 |
Add New Post /wp-admin/post-new.php | 1,541 ▲1 | 20.84 ▼2.16 | 758.31 ▲87.54 | 38.27 ▼23.09 |
Media Library /wp-admin/upload.php | 1,435 ▲38 | 4.27 ▲0.01 | 103.14 ▲0.30 | 65.85 ▲21.58 |
Buttons /wp-admin/admin.php?page=maxbuttons-controller | 1,127 | 2.25 | 32.70 | 75.42 |
Settings /wp-admin/admin.php?page=maxbuttons-settings | 1,466 | 2.58 | 48.86 | 55.39 |
Support /wp-admin/admin.php?page=maxbuttons-support | 1,089 | 2.22 | 30.12 | 58.69 |
Add New /wp-admin/admin.php?page=maxbuttons-controller&action=edit | 4,590 | 4.19 | 133.55 | 98.29 |
Upgrade to Pro /wp-admin/admin.php?page=maxbuttons-pro | 1,554 | 2.39 | 29.79 | 64.19 |
Share Buttons /wp-admin/admin.php?page=social-share | 1,080 | 2.21 | 31.87 | 58.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 3 tables
- wp_maxbuttons_collections
- wp_maxbuttons_collections_trans
- wp_maxbuttonsv3
- This plugin does not fully uninstall, leaving 9 options in the database
- MBFREE_CREATED
- db_upgraded
- widget_recent-posts
- maxbuttons_user_level
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- MBFREE_HOMEURL
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
- 38× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/maxbuttons/includes/maxbuttons-list.php
- > /wp-content/plugins/maxbuttons/blocks/dimension.php
- > /wp-content/plugins/maxbuttons/classes/integrations.php
- > /wp-content/plugins/maxbuttons/classes/maxCSSParser.php
- > /wp-content/plugins/maxbuttons/includes/maxbuttons-button.php
- > /wp-content/plugins/maxbuttons/blocks/advanced.php
- > /wp-content/plugins/maxbuttons/assets/libraries/font-awesome-5/convert.php
- > /wp-content/plugins/maxbuttons/blocks/responsive.php
- > /wp-content/plugins/maxbuttons/classes/maxbuttons-admin-helper.php
- > /wp-content/plugins/maxbuttons/blocks/meta.php
- 44× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'MaxButtons\\ScssPhp\\ScssPhp\ode' not found in wp-content/plugins/maxbuttons/assets/libraries/scssphp/src/Node/Number.php:36
- > PHP Fatal error
Uncaught Error: Class 'MaxButtons\\ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/maxbuttons/assets/libraries/scssphp/src/Formatter/Compressed.php:24
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/maxbuttons/views/modals/trash-modal.php:3
- > PHP Warning
file_get_contents(./icons.json): failed to open stream: No such file or directory in wp-content/plugins/maxbuttons/assets/libraries/font-awesome-5/convert.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'MaxButtons\\ScssPhp\\ScssPhp\\Block' not found in wp-content/plugins/maxbuttons/assets/libraries/scssphp/src/Block/DirectiveBlock.php:21
- > PHP Fatal error
Uncaught Error: Class 'MaxButtons\\MaxController' not found in wp-content/plugins/maxbuttons/classes/controllers/listController.php:5
- > PHP Fatal error
Uncaught Error: Class 'MaxButtons\\ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/maxbuttons/assets/libraries/scssphp/src/Formatter/Crunched.php:26
- > PHP Fatal error
Uncaught Error: Class 'MaxButtons\\ScssPhp\\ScssPhp\\Block' not found in wp-content/plugins/maxbuttons/assets/libraries/scssphp/src/Block/MediaBlock.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function MaxButtons\\trailingslashit() in wp-content/plugins/maxbuttons/maxbuttons.php:58
- > PHP Fatal error
Uncaught Error: Class 'MaxButtons\\MaxController' not found in wp-content/plugins/maxbuttons/classes/controllers/upgradeController.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=maxbuttons-pro
- > Intervention (severe) in unknown
/wp-admin/admin.php?page=maxbuttons-controller&action=edit - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: css3 button generator, wordpress buttons, wordpress button plugin, css wordpress button, share button...
maxbuttons/maxbuttons.php 92% from 13 tests
"WordPress Button Plugin MaxButtons" version 9.7.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin36,633 lines of code in 165 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 113 | 6,252 | 6,683 | 22,195 |
JSON | 4 | 0 | 0 | 5,000 |
Sass | 19 | 475 | 157 | 2,807 |
CSS | 8 | 33 | 155 | 2,727 |
JavaScript | 11 | 734 | 419 | 2,580 |
PO File | 1 | 372 | 454 | 1,004 |
Markdown | 2 | 21 | 0 | 256 |
XML | 7 | 0 | 0 | 64 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,493)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 198)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 44.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,493.00 |
Average method complexity | 4.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 198.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 91 | |
▷ Abstract classes | 4 | 4.40% |
▷ Concrete classes | 87 | 95.60% |
▷ Final classes | 4 | 4.60% |
Methods | 993 | |
▷ Static methods | 140 | 14.10% |
▷ Public methods | 549 | 55.29% |
▷ Protected methods | 383 | 38.57% |
▷ Private methods | 61 | 6.14% |
Functions | 60 | |
▷ Named functions | 35 | 58.33% |
▷ Anonymous functions | 25 | 41.67% |
Constants | 98 | |
▷ Global constants | 26 | 26.53% |
▷ Class constants | 72 | 73.47% |
▷ Public constants | 72 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
89 PNG files occupy 1.54MB with 0.95MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/p_top.png | 20.89KB | 0.13KB | ▼ 99.39% |
images/gopro/icons/quickadd.png | 5.70KB | 3.95KB | ▼ 30.57% |
images/icons/bold.png | 20.95KB | 0.18KB | ▼ 99.13% |
images/gopro/social-9.png | 2.61KB | 2.49KB | ▼ 4.75% |
images/gopro/s4-pack8.png | 38.71KB | 9.03KB | ▼ 76.68% |