Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.52ms] Passed 4 tests
This is a short check of server-side resources used by WordPress Social Share Buttons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.68 ▲0.06 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.18 ▼4.48 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.25 ▲2.53 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.28 ▼8.09 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.71 ▲2.43 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 115 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Social Share Buttons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 14.74 ▲0.08 | 1.67 ▼0.18 | 38.72 ▼4.97 |
Dashboard /wp-admin | 2,216 ▲28 | 5.83 ▼0.02 | 96.46 ▼2.64 | 39.16 ▼4.99 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.05 ▲0.06 | 40.65 ▼0.91 | 36.29 ▼1.92 |
Add New Post /wp-admin/post-new.php | 1,533 ▲12 | 23.13 ▼0.13 | 676.91 ▼0.28 | 55.76 ▼12.52 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.26 ▲0.01 | 106.95 ▲9.97 | 46.61 ▼6.23 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 47× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/share-button/classes/blocks/admin_block.php
- > /wp-content/plugins/share-button/classes/styles/horizontal-style.php
- > /wp-content/plugins/share-button/classes/class-presets.php
- > /wp-content/plugins/share-button/classes/blocks/layout-block.php
- > /wp-content/plugins/share-button/classes/styles/round-style.php
- > /wp-content/plugins/share-button/admin/page_editor.php
- > /wp-content/plugins/share-button/classes/blocks/twitter_block.php
- > /wp-content/plugins/share-button/classes/class-block.php
- > /wp-content/plugins/share-button/classes/blocks/count_block.php
- > /wp-content/plugins/share-button/classes/blocks/preview_block.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'MBSocial\\mbNetwork' not found in wp-content/plugins/share-button/classes/network/twitter.php:7
- > PHP Fatal error
Uncaught Error: Class 'MBSocial\\mbNetwork' not found in wp-content/plugins/share-button/classes/network/pinterest.php:5
- > PHP Notice
Undefined variable: title in wp-content/plugins/share-button/admin/header.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/share-button/admin/header.php:7
- > PHP Fatal error
Uncaught Error: Class 'MBSocial\\collection' not found in wp-content/plugins/share-button/admin/share_editor.php:9
- > PHP Fatal error
Uncaught Error: Class 'MBSocial\\mbNetwork' not found in wp-content/plugins/share-button/classes/network/custom.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function MBSocial\\MBSocial() in wp-content/plugins/share-button/admin/page_networks.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: twitter, wordpress social share, instagram, social icons, facebook...
share-button/share-button.php 85% from 13 tests
The primary PHP file in "WordPress Social Share Buttons" version 1.19 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin11,428 lines of code in 77 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 57 | 2,755 | 1,650 | 8,710 |
Sass | 9 | 186 | 54 | 1,030 |
CSS | 4 | 13 | 39 | 956 |
JavaScript | 6 | 265 | 42 | 731 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 17.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 0 | 0.00% |
Methods | 347 | |
▷ Static methods | 46 | 13.26% |
▷ Public methods | 320 | 92.22% |
▷ Protected methods | 24 | 6.92% |
▷ Private methods | 3 | 0.86% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 13 | |
▷ Global constants | 4 | 30.77% |
▷ Class constants | 9 | 69.23% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
28 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/display_icons.png | 17.72KB | 1.13KB | ▼ 93.59% |
images/icons/shape_circle.png | 0.71KB | 0.51KB | ▼ 28.02% |
images/icons/icon_bottomleft.png | 0.21KB | 0.11KB | ▼ 49.77% |
images/icons/icon_bottomright.png | 0.21KB | 0.11KB | ▼ 48.36% |
images/icons/icon_vertical.png | 0.22KB | 0.09KB | ▼ 57.89% |