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.07MB] [CPU: ▼140.46ms] Passed 4 tests
Analyzing server-side resources used by WPB Social Master
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 32.86 ▲11.98 |
Dashboard /wp-admin | 3.11 ▲0.06 | 41.04 ▲0.73 |
Posts /wp-admin/edit.php | 3.22 ▲0.12 | 40.93 ▼2.24 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 87.58 ▼555.49 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 34.17 ▼4.82 |
WPB Social Master /wp-admin/options-general.php?page=wpb_social_master | 3.03 | 29.56 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 3 new options
New WordPress options |
---|
wpb_style |
wpb_follow |
wpb_profile |
Browser metrics Passed 4 tests
WPB Social Master: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,847 ▲241 | 16.94 ▲1.43 | 12.92 ▲5.10 | 45.54 ▼4.74 |
Dashboard /wp-admin | 3,007 ▲76 | 6.53 ▲0.38 | 132.62 ▼6.56 | 112.45 ▲17.98 |
Posts /wp-admin/edit.php | 2,795 ▲56 | 3.02 ▲0.33 | 68.47 ▲7.49 | 104.16 ▲18.12 |
Add New Post /wp-admin/post-new.php | 1,711 ▼161 | 18.20 ▼0.96 | 345.46 ▼34.27 | 127.03 ▲19.54 |
Media Library /wp-admin/upload.php | 1,854 ▲47 | 5.18 ▲0.17 | 122.89 ▼23.82 | 120.25 ▼2.29 |
WPB Social Master /wp-admin/options-general.php?page=wpb_social_master | 2,046 | 3.24 | 96.74 | 79.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 3 options
- wpb_follow
- wpb_style
- wpb_profile
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpb-social-master/main.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpb-social-master/class.settings-api.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: social network, facebook social, social, social share, social media
wpb-social-master/main.php 85% from 13 tests
The main file in "WPB Social Master" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wpb-social-master.php" instead of "main.php")
- Description: Keep the plugin description shorter than 140 characters (currently 653 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,025 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 136 | 182 | 605 |
SVG | 1 | 0 | 0 | 414 |
CSS | 1 | 0 | 0 | 3 |
JavaScript | 2 | 0 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/social-sprite.png | 110.61KB | 49.95KB | ▼ 54.84% |