Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/socialplus/socialplus-widget.php+44
Function create_function() is deprecated
Server metrics [RAM: ▼1.80MB] [CPU: ▼53.37ms] Passed 4 tests
A check of server-side resources used by SocialPlus
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼1.27 | 4.68 ▼42.48 |
Dashboard /wp-admin | 2.21 ▼1.09 | 5.59 ▼39.26 |
Posts /wp-admin/edit.php | 2.21 ▼1.14 | 5.74 ▼43.65 |
Add New Post /wp-admin/post-new.php | 2.21 ▼3.68 | 6.07 ▼88.08 |
Media Library /wp-admin/upload.php | 2.21 ▼1.02 | 6.49 ▼24.91 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 13 new options
New WordPress options |
---|
socialplus_share_buttons |
socialplus_profile_settings |
widget_recent-comments |
socialplus_share_settings |
widget_socialplus_widget |
can_compress_scripts |
socialplus_profile_buttons |
widget_recent-posts |
db_upgraded |
socialplus_profile_pos |
... |
Browser metrics Passed 4 tests
A check of browser resources used by SocialPlus
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 13.93 ▼0.42 | 1.78 ▼0.02 | 38.35 ▼7.88 |
Dashboard /wp-admin | 2,216 ▲42 | 5.58 ▼0.10 | 87.25 ▼12.17 | 40.78 ▼2.87 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.20 ▲0.23 | 34.33 ▼7.91 | 31.88 ▼9.00 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.07 ▲0.22 | 601.89 ▼7.15 | 89.05 ▼0.14 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.20 ▲0.01 | 96.07 ▼3.64 | 47.39 ▲5.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/socialplus/socialplus-widget.php+44
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 13 options in the database
- socialplus_profile_settings
- socialplus_profile_pos
- widget_recent-comments
- socialplus_share_pos
- can_compress_scripts
- socialplus_profile_buttons
- socialplus_share_settings
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- ...
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
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/socialplus/socialplus-wrapper.php
- > /wp-content/plugins/socialplus/socialplus.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/socialplus/socialplus-widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: share, social network, social
socialplus/socialplus.php 92% from 13 tests
The primary PHP file in "SocialPlus" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 229 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,489 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 112 | 35 | 727 |
CSS | 5 | 151 | 0 | 581 |
PO File | 1 | 36 | 36 | 104 |
SVG | 12 | 0 | 0 | 70 |
JavaScript | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 11.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 55 | 55.00% |
▷ Public methods | 99 | 99.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin