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.02MB] [CPU: ▲0.12ms] Passed 4 tests
This is a short check of server-side resources used by Social Share - Bar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.63 ▼0.76 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.03 ▼2.65 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 50.94 ▲0.03 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 91.86 ▲4.95 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.51 ▲3.85 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
ss_share_settings |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Social Share - Bar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲50 | 14.53 ▲0.16 | 2.43 ▲0.90 | 39.01 ▼5.64 |
Dashboard /wp-admin | 2,208 ▲31 | 5.62 ▲0.04 | 96.40 ▲5.91 | 43.62 ▲4.91 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 2.02 ▲0.05 | 40.04 ▼1.03 | 38.99 ▲2.84 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.09 ▲0.28 | 656.67 ▼22.24 | 53.87 ▼8.47 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.23 ▲0.04 | 100.87 ▼20.13 | 44.27 ▼0.91 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- ss_share_settings
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ss-bar/includes/views/dashboard-template.php
- > /wp-content/plugins/ss-bar/ss-bar.php
- > /wp-content/plugins/ss-bar/includes/views/page-template.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
include(SSBR_PATHincludes/views/designs/default.php): failed to open stream: No such file or directory in wp-content/plugins/ss-bar/includes/views/page-template.php on line 22
- > PHP Warning
include(): Failed opening 'SSBR_PATHincludes/views/designs/default.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/ss-bar/includes/views/page-template.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ss-bar/includes/views/designs/design1.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ss-bar/includes/class/class-setting.php:11
- > PHP Warning
Use of undefined constant SSBR_PATH - assumed 'SSBR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ss-bar/includes/views/page-template.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ss-bar/includes/views/designs/default.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ss-bar/includes/views/register-setting.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ss-bar/includes/views/designs/design2.php:3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2 in ss-bar/assets to your readme.txt
ss-bar/ss-bar.php 85% from 13 tests
The entry point to "Social Share - Bar" version 2.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "5.2")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected404 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 191 | 35 | 304 |
CSS | 1 | 3 | 0 | 100 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
PNG images were not found in this plugin