Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲1.44MB] [CPU: ▲7.29ms] Passed 4 tests
An overview of server-side resources used by Social Media Share Buttons And Social Buttons | MashShare
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.48 ▲1.02 | 45.25 ▲6.28 |
Dashboard /wp-admin | 4.89 ▲1.59 | 55.64 ▲6.46 |
Posts /wp-admin/edit.php | 4.94 ▲1.59 | 61.23 ▲14.74 |
Add New Post /wp-admin/post-new.php | 7.53 ▲1.64 | 102.20 ▲1.67 |
Media Library /wp-admin/upload.php | 4.81 ▲1.58 | 55.62 ▲20.34 |
Install Add-Ons /wp-admin/admin.php?page=mashsb-addons | 4.72 | 293.42 |
Im/Export & System /wp-admin/admin.php?page=mashsb-tools | 4.72 | 272.08 |
Quickstart /wp-admin/admin.php?page=mashsb-getting-started | 4.72 | 280.86 |
Settings /wp-admin/admin.php?page=mashsb-settings | 4.80 | 263.24 |
Welcome to MashShare /wp-admin/admin.php?page=mashsb-about | 4.72 | 262.27 |
Server storage [IO: ▲2.87MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 407 new files
Database: no new tables, 13 new options
New WordPress options |
---|
mashsb_update_notice_101 |
widget_theysaidso_widget |
mashsb_networks |
mashsb_settings |
mashsb_RatingDiv |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Social Media Share Buttons And Social Buttons | MashShare
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,985 ▲214 | 13.68 ▼0.70 | 7.30 ▲5.34 | 39.29 ▼9.93 |
Dashboard /wp-admin | 2,280 ▲95 | 5.13 ▲0.25 | 110.69 ▲8.67 | 46.02 ▲4.97 |
Posts /wp-admin/edit.php | 2,192 ▲103 | 2.01 ▼0.01 | 40.69 ▲4.06 | 36.09 ▲4.84 |
Add New Post /wp-admin/post-new.php | 6,488 ▲4,969 | 26.32 ▲3.09 | 943.21 ▲331.79 | 80.83 ▲24.37 |
Media Library /wp-admin/upload.php | 1,474 ▲86 | 4.24 ▲0.07 | 111.94 ▲16.52 | 51.71 ▲7.34 |
Install Add-Ons /wp-admin/admin.php?page=mashsb-addons | 1,112 | 3.09 | 64.40 | 31.01 |
Im/Export & System /wp-admin/admin.php?page=mashsb-tools | 1,016 | 2.99 | 58.96 | 27.38 |
Quickstart /wp-admin/admin.php?page=mashsb-getting-started | 1,119 | 2.97 | 51.33 | 60.16 |
Settings /wp-admin/admin.php?page=mashsb-settings | 2,689 | 3.62 | 75.17 | 59.37 |
Welcome to MashShare /wp-admin/admin.php?page=mashsb-about | 1,114 | 2.98 | 57.62 | 39.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 13 options in the database
- mashsb_installDate
- can_compress_scripts
- db_upgraded
- mashsb_networks
- widget_recent-posts
- mashsb_RatingDiv
- widget_theysaidso_widget
- mashsb_version
- mashsb_update_notice_101
- mashsb_settings
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/mashsharer/includes/admin/meta-box/inc/templates/image-advanced_1.php
- > /wp-content/plugins/mashsharer/includes/admin/meta-box/inc/templates/media.php
- > /wp-content/plugins/mashsharer/includes/admin/meta-box/inc/templates/upload.php
- > /wp-content/plugins/mashsharer/includes/admin/meta-box/inc/templates/image-advanced.php
- 64× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'MASHSB_RWMB_Input_Field' not found in wp-content/plugins/mashsharer/includes/admin/meta-box/inc/fields/checkbox.php:5
- > PHP Fatal error
Uncaught Error: Interface 'iMashDebug' not found in wp-content/plugins/mashsharer/includes/debug/classes/MashDebug.class.php:21
- > PHP Fatal error
Uncaught Error: Class 'MASHSB_RWMB_Field' not found in wp-content/plugins/mashsharer/includes/admin/meta-box/inc/fields/wysiwyg.php:6
- > PHP Fatal error
Uncaught Error: Class 'MASHSB_RWMB_Text_Field' not found in wp-content/plugins/mashsharer/includes/admin/meta-box/inc/fields/password.php:5
- > PHP Fatal error
Uncaught Error: Class 'MASHSB_RWMB_Field' not found in wp-content/plugins/mashsharer/includes/admin/meta-box/inc/fields/divider.php:5
- > PHP Fatal error
Uncaught Error: Class 'MASHSB_RWMB_Field' not found in wp-content/plugins/mashsharer/includes/admin/meta-box/inc/fields/custom-html.php:6
- > PHP Fatal error
Uncaught Error: Class 'MASHSB_RWMB_Walker' not found in wp-content/plugins/mashsharer/includes/admin/meta-box/inc/walkers/select-walker.php:6
- > PHP Fatal error
Uncaught Error: Class 'MASHSB_RWMB_Multiple_Values_Field' not found in wp-content/plugins/mashsharer/includes/admin/meta-box/inc/fields/text-list.php:5
- > PHP Fatal error
Uncaught Error: Class 'MASHSB_RWMB_Text_Field' not found in wp-content/plugins/mashsharer/includes/admin/meta-box/inc/fields/color.php:5
- > PHP Fatal error
Uncaught Error: Class 'MASHSB_RWMB_Input_Field' not found in wp-content/plugins/mashsharer/includes/admin/meta-box/inc/fields/text.php:5
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Requires at least: Version format is invalid
mashsharer/mashshare.php 85% from 13 tests
The principal PHP file in "Social Media Share Buttons And Social Buttons | MashShare" v. 3.8.9 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("mashsharer.php" instead of "mashshare.php")
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 detected30,716 lines of code in 331 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 119 | 2,544 | 6,098 | 11,084 |
PO File | 11 | 3,084 | 3,268 | 9,583 |
JavaScript | 156 | 747 | 995 | 6,052 |
CSS | 39 | 351 | 337 | 3,814 |
SVG | 2 | 63 | 0 | 87 |
Markdown | 3 | 36 | 0 | 66 |
XML | 1 | 11 | 0 | 30 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 12.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 119.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 82 | |
▷ Abstract classes | 7 | 8.54% |
▷ Concrete classes | 75 | 91.46% |
▷ Final classes | 1 | 1.33% |
Methods | 507 | |
▷ Static methods | 248 | 48.92% |
▷ Public methods | 472 | 93.10% |
▷ Protected methods | 6 | 1.18% |
▷ Private methods | 29 | 5.72% |
Functions | 198 | |
▷ Named functions | 196 | 98.99% |
▷ Anonymous functions | 2 | 1.01% |
Constants | 28 | |
▷ Global constants | 13 | 46.43% |
▷ Class constants | 15 | 53.57% |
▷ Public constants | 15 | 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
33 PNG files occupy 0.52MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/screenshots/most-shared-posts.png | 22.65KB | 21.95KB | ▼ 3.09% |
includes/admin/meta-box/img/jqueryui/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
includes/admin/meta-box/img/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
assets/images/screenshots/oauth.png | 8.47KB | 3.78KB | ▼ 55.38% |
assets/images/screenshots/widget.png | 77.87KB | 22.23KB | ▼ 71.45% |