Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/bosssocial/boss-social.php+173
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼50.63ms] Passed 4 tests
An overview of server-side resources used by BossSocial
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 3.95 ▼37.93 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.53 ▼41.83 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.03 ▼39.76 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.25 ▼83.00 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.38 ▼28.95 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_boss_social_icons_widget |
Browser metrics Passed 4 tests
A check of browser resources used by BossSocial
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲84 | 13.32 ▼1.05 | 4.33 ▲2.26 | 40.90 ▼1.62 |
Dashboard /wp-admin | 2,220 ▲32 | 5.85 ▲0.01 | 104.04 ▲3.29 | 79.89 ▲39.29 |
Posts /wp-admin/edit.php | 2,103 ▲11 | 2.00 ▼0.05 | 39.58 ▼3.08 | 36.49 ▲2.51 |
Add New Post /wp-admin/post-new.php | 1,529 ▲15 | 17.51 ▲0.06 | 753.42 ▲143.30 | 57.53 ▲12.38 |
Media Library /wp-admin/upload.php | 1,405 ▲20 | 4.18 ▲0.02 | 97.96 ▲3.04 | 79.09 ▲38.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/bosssocial/boss-social.php+173
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_boss_social_icons_widget
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% 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 take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bosssocial/boss-social-admin.php:806
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bosssocial/boss-social.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Screenshot #1 (screenshot-1.jpg) image missing
bosssocial/boss-social.php 92% from 13 tests
The primary PHP file in "BossSocial" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bosssocial.php" instead of "boss-social.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected833 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 335 | 51 | 613 |
CSS | 2 | 87 | 10 | 220 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 8.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.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 | 8 | |
▷ Named functions | 8 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
27 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/facebook.png | 2.93KB | 0.30KB | ▼ 89.74% |
images/soundcloud.png | 3.02KB | 0.43KB | ▼ 85.65% |
images/delicious.png | 2.96KB | 0.26KB | ▼ 91.07% |
images/pinterest.png | 3.10KB | 0.56KB | ▼ 81.99% |
images/flickr.png | 0.35KB | 0.28KB | ▼ 20.79% |