Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.23MB] [CPU: ▼13.56ms] Passed 4 tests
Analyzing server-side resources used by Mango Buttons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.77 ▼2.21 |
Dashboard /wp-admin | 3.11 ▼0.20 | 29.48 ▼20.39 |
Posts /wp-admin/edit.php | 3.24 ▼0.11 | 35.31 ▼10.76 |
Add New Post /wp-admin/post-new.php | 5.33 ▼0.55 | 68.24 ▼16.90 |
Media Library /wp-admin/upload.php | 3.18 ▼0.05 | 27.81 ▼6.18 |
Settings /wp-admin/admin.php?page=mangobuttons | 3.09 | 28.64 |
Help /wp-admin/admin.php?page=mangobuttons-help | 3.09 | 27.07 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
mb_extended_language_support |
mb_email |
widget_recent-comments |
MB_VERSION |
db_upgraded |
mb_icon_color |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Mango Buttons
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,078 ▲317 | 14.37 ▼0.28 | 1.67 ▼0.17 | 42.45 ▼1.04 |
Dashboard /wp-admin | 2,463 ▲286 | 4.95 ▼0.63 | 86.35 ▼13.26 | 87.61 ▲43.54 |
Posts /wp-admin/edit.php | 2,390 ▲290 | 2.51 ▲0.51 | 33.53 ▼3.33 | 33.23 ▼1.14 |
Add New Post /wp-admin/post-new.php | 1,973 ▲438 | 22.90 ▲4.39 | 639.47 ▼25.87 | 29.67 ▼38.74 |
Media Library /wp-admin/upload.php | 1,678 ▲278 | 4.58 ▲0.39 | 97.71 ▼9.48 | 74.17 ▲28.10 |
Settings /wp-admin/admin.php?page=mangobuttons | 1,245 | 2.56 | 56.09 | 95.87 |
Help /wp-admin/admin.php?page=mangobuttons-help | 1,236 | 2.90 | 52.72 | 56.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin did not uninstall successfully, leaving 10 options in the database
- MB_VERSION
- mb_email
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- mb_icon_color
- mb_extended_language_support
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mangobuttons-help
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
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
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mango-buttons/admin/controllers/help.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mango-buttons/admin/ajax/mb-ajax-handler.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mango-buttons/admin/controllers/settings.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
mango-buttons/mango-buttons.php Passed 13 tests
The entry point to "Mango Buttons" version 1.2.9 is a PHP file that has certain tags in its header comment area
118 characters long description:
Mango Buttons is a button creator for WordPress that allows anyone to create beautiful buttons anywhere on their site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin5,666 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 34 | 147 | 2,290 |
LESS | 14 | 335 | 118 | 1,511 |
JavaScript | 8 | 216 | 116 | 1,290 |
PHP | 4 | 151 | 75 | 322 |
HTML | 3 | 55 | 18 | 194 |
Markdown | 1 | 6 | 0 | 59 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 9 | 23.68% |
▷ Public methods | 36 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.26% |
Functions | 1 | |
▷ Named functions | 1 | 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
10 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/page-icon.png | 3.74KB | 2.81KB | ▼ 24.76% |
admin/images/ads/modal-ad.png | 49.67KB | 24.68KB | ▼ 50.31% |
admin/images/TinyMCEButton-grayscale.png | 7.91KB | 2.17KB | ▼ 72.51% |
admin/images/ads/sidebar-ad.png | 13.44KB | 7.51KB | ▼ 44.14% |
admin/images/menu-icon.png | 1.20KB | 0.93KB | ▼ 22.61% |