Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/socialmyblog/socialmyblog-widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; socialIcons has a deprecated constructor
Server metrics [RAM: ▼1.72MB] [CPU: ▼45.85ms] Passed 4 tests
An overview of server-side resources used by SocialMyBlog
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 9.93 ▼26.60 |
Dashboard /wp-admin | 2.29 ▼1.05 | 10.95 ▼47.20 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 10.05 ▼35.38 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 10.80 ▼74.22 |
Media Library /wp-admin/upload.php | 2.29 ▼0.93 | 11.02 ▼24.73 |
Social My Blog Settings /wp-admin/options-general.php?page=bk-socialmyblog | 2.29 | 9.40 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_my_widget_base |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for SocialMyBlog
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.32 ▼1.04 | 1.69 ▲0.03 | 37.87 ▼8.40 |
Dashboard /wp-admin | 2,207 ▲19 | 5.84 ▼0.06 | 95.70 ▼6.67 | 39.03 ▼3.79 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.03 ▲0.02 | 33.71 ▼0.92 | 33.60 ▼0.50 |
Add New Post /wp-admin/post-new.php | 1,522 ▼13 | 23.08 ▼0.19 | 637.44 ▼38.41 | 50.32 ▼15.04 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.23 ▲0.10 | 113.62 ▲3.04 | 48.52 ▲1.76 |
Social My Blog Settings /wp-admin/options-general.php?page=bk-socialmyblog | 814 | 2.06 | 24.65 | 26.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in socialIcons is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- widget_my_widget_base
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=bk-socialmyblog
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in socialIcons is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=bk-socialmyblog
- > Notice in wp-content/plugins/socialmyblog/socialmyblog-admin.php+2
Undefined index: socialmyblog_hidden
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/socialmyblog/socialmyblog-admin.php:30
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/socialmyblog/socialmyblog-widget.php:2
- > PHP Notice
Undefined index: socialmyblog_hidden in wp-content/plugins/socialmyblog/socialmyblog-admin.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/socialmyblog/socialmyblog-widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (Settings Page), #2 (Buttons after post body), #3 (Widget in action)
socialmyblog/socialmyblog-media.php 85% from 13 tests
The principal PHP file in "SocialMyBlog" v. 1.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("socialmyblog.php" instead of "socialmyblog-media.php")
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
Success! There were no dangerous files found in this plugin256 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 65 | 37 | 179 |
CSS | 1 | 20 | 0 | 77 |
PHP code Passed 2 tests
An short overview of 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.15 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
13 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/set_1/flikr.png | 0.81KB | 0.86KB | 0.00% |
images/set_1/vimeo.png | 2.04KB | 1.30KB | ▼ 36.08% |
images/set_1/mail.png | 1.01KB | 0.95KB | ▼ 5.89% |
screenshot-3.png | 12.40KB | 3.05KB | ▼ 75.40% |
images/set_1/facebook.png | 0.83KB | 0.91KB | 0.00% |