Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.30MB] [CPU: ▲122.38ms] Passed 4 tests
A check of server-side resources used by Sosh Share Buttons
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 755.38 ▲715.30 |
Dashboard /wp-admin | 3.32 ▲0.02 | 51.73 ▲0.75 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.71 ▼5.45 |
Add New Post /wp-admin/post-new.php | 4.62 ▼1.26 | 594.99 ▲491.36 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.13 ▲2.87 |
Server storage [IO: ▲0.11MB] [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: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
sosh_share_buttons_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Sosh Share Buttons
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,008 ▲247 | 13.55 ▼0.81 | 9.06 ▲7.35 | 43.65 ▲0.87 |
Dashboard /wp-admin | 2,211 ▲34 | 5.57 ▲0.02 | 84.51 ▼7.75 | 37.79 ▼7.09 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.04 ▲0.00 | 34.15 ▼5.52 | 33.01 ▼1.36 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.20 ▲0.05 | 610.58 ▼59.24 | 49.59 ▼9.45 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.17 ▼0.02 | 98.57 ▼5.24 | 45.21 ▲1.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- sosh_share_buttons_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sosh-share-buttons/sosh.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sosh-share-buttons/inc/functions-help.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sosh-share-buttons/inc/inc.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3 in sosh-share-buttons/assets to your readme.txt
sosh-share-buttons/sosh.php 92% from 13 tests
The main file in "Sosh Share Buttons" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("sosh-share-buttons.php" instead of "sosh.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,014 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 123 | 94 | 529 |
PHP | 4 | 150 | 67 | 380 |
JavaScript | 4 | 14 | 4 | 87 |
SVG | 1 | 6 | 0 | 18 |
PHP code Passed 2 tests
An short overview of 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.67 |
Average class complexity | 90.00 |
▷ Minimum class complexity | 90.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 6.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 4 | 23.53% |
▷ Public methods | 12 | 70.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 29.41% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin