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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.09ms] Passed 4 tests
A check of server-side resources used by Social Sharing Button
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 47.99 ▲9.51 |
Dashboard /wp-admin | 3.33 ▼0.02 | 44.83 ▼10.25 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.00 ▲3.74 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 81.78 ▼8.18 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.86 ▲6.33 |
Server storage [IO: ▲4.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_\springdevs\ssb\illuminate\sociallinks |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Social Sharing Button
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲50 | 14.45 ▲0.18 | 1.99 ▲0.22 | 43.82 ▲3.80 |
Dashboard /wp-admin | 2,207 ▲27 | 5.64 ▼0.02 | 94.27 ▲6.22 | 43.15 ▼1.95 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.98 ▼0.03 | 33.30 ▼5.30 | 35.90 ▲4.67 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 23.09 ▼0.07 | 663.13 ▼2.53 | 54.89 ▼10.42 |
Media Library /wp-admin/upload.php | 1,415 ▲12 | 4.13 ▼0.13 | 119.75 ▲21.09 | 46.39 ▲1.96 |
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
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_\springdevs\ssb\illuminate\sociallinks
- widget_recent-comments
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 perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/product-sharing-buttons/templates/3.php
- > /wp-content/plugins/product-sharing-buttons/templates/2.php
- > /wp-content/plugins/product-sharing-buttons/templates/4.php
- > /wp-content/plugins/product-sharing-buttons/templates/1.php
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/product-sharing-buttons/templates/3.php on line 3
- > PHP Notice
Undefined variable: social_buttons in wp-content/plugins/product-sharing-buttons/templates/2.php on line 3
- > PHP Notice
Undefined variable: social_buttons in wp-content/plugins/product-sharing-buttons/templates/4.php on line 3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/product-sharing-buttons/templates/4.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/product-sharing-buttons/includes/Illuminate/SocialLinks.php:11
- > PHP Notice
Undefined variable: social_buttons in wp-content/plugins/product-sharing-buttons/templates/3.php on line 3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/product-sharing-buttons/templates/2.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/product-sharing-buttons/includes/Admin/views/settings.php:2
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/product-sharing-buttons/templates/1.php on line 3
- > PHP Notice
Undefined variable: social_buttons in wp-content/plugins/product-sharing-buttons/templates/1.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Please fix this invalid URI: ""
product-sharing-buttons/social-sharing-buttons.php 77% from 13 tests
The main PHP file in "Social Sharing Button" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("product-sharing-buttons.php" instead of "social-sharing-buttons.php")
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,425 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 308 | 426 | 1,290 |
CSS | 2 | 8 | 5 | 130 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 9.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 1 | 6.67% |
Methods | 80 | |
▷ Static methods | 14 | 17.50% |
▷ Public methods | 76 | 95.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.00% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin