Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.24MB] [CPU: ▼6.72ms] Passed 4 tests
This is a short check of server-side resources used by Social Sharing Plugin - Social Warfare
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.13 ▲1.67 | 47.82 ▲6.66 |
Dashboard /wp-admin | 4.83 ▲1.48 | 52.50 ▼6.56 |
Posts /wp-admin/edit.php | 4.88 ▲1.53 | 55.53 ▲10.17 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 58.65 ▼37.16 |
Media Library /wp-admin/upload.php | 4.75 ▲1.52 | 49.11 ▲14.37 |
Server storage [IO: ▲1.92MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 164 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_swp_popular_posts_widget |
swp_json_cache |
social_warfare_dismissed_notices |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
swp_registered_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Social Sharing Plugin - Social Warfare
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,238 ▲492 | 13.49 ▼0.86 | 12.56 ▲10.99 | 62.85 ▲17.24 |
Dashboard /wp-admin | 2,254 ▲73 | 5.65 ▼0.07 | 84.68 ▼10.41 | 46.20 ▲4.03 |
Posts /wp-admin/edit.php | 2,189 ▲92 | 2.19 ▲0.21 | 37.82 ▲2.72 | 40.75 ▲7.41 |
Add New Post /wp-admin/post-new.php | 6,465 ▲4,939 | 29.52 ▲6.47 | 911.02 ▲241.40 | 40.21 ▼24.40 |
Media Library /wp-admin/upload.php | 1,456 ▲53 | 4.34 ▲0.14 | 96.51 ▼2.72 | 47.90 ▲2.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_swp_popular_posts_widget
- widget_recent-comments
- social_warfare_dismissed_notices
- swp_json_cache
- widget_theysaidso_widget
- swp_registered_options
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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
Please take a closer look at the following
- 31× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'SWP_Option' not found in wp-content/plugins/social-warfare/lib/options/SWP_Registration_Tab_Template.php:3
- > PHP Fatal error
Uncaught Error: Class 'SWP_Social_Network' not found in wp-content/plugins/social-warfare/lib/social-networks/SWP_Stumble_Upon.php:16
- > PHP Fatal error
Uncaught Error: Class 'SWP_Option' not found in wp-content/plugins/social-warfare/lib/options/SWP_Option_Textarea.php:12
- > PHP Fatal error
Trait 'SWP_Debug_Trait' not found in wp-content/plugins/social-warfare/lib/options/SWP_Option_Abstract.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'SWP_Option' not found in wp-content/plugins/social-warfare/lib/options/SWP_Option_Icons.php:17
- > PHP Fatal error
Trait 'SWP_Debug_Trait' not found in wp-content/plugins/social-warfare/lib/utilities/SWP_JSON_Cache_Handler.php on line 18
- > PHP Fatal error
Trait 'SWP_Buttons_Panel_Trait' not found in wp-content/plugins/social-warfare/lib/buttons-panel/SWP_Buttons_Panel.php on line 61
- > PHP Fatal error
Uncaught Error: Class 'SWP_Option_Abstract' not found in wp-content/plugins/social-warfare/lib/options/SWP_Option.php:18
- > PHP Fatal error
Uncaught Error: Class 'SWP_Option_Abstract' not found in wp-content/plugins/social-warfare/lib/options/SWP_Options_Page_Section.php:17
- > PHP Fatal error
Trait 'SWP_Debug_Trait' not found in wp-content/plugins/social-warfare/lib/utilities/SWP_Notice_Loader.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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 your attention:
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
social-warfare/social-warfare.php 92% from 13 tests
"Social Sharing Plugin - Social Warfare" version 4.4.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 274 characters long)
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 plugin24,912 lines of code in 121 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 7,095 |
PHP | 64 | 2,992 | 8,326 | 6,637 |
CSS | 17 | 652 | 103 | 5,613 |
Sass | 19 | 566 | 65 | 3,135 |
JavaScript | 16 | 689 | 1,226 | 2,348 |
SVG | 1 | 0 | 1 | 67 |
Markdown | 1 | 8 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 15.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 62 | |
▷ Abstract classes | 2 | 3.23% |
▷ Concrete classes | 60 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 455 | |
▷ Static methods | 53 | 11.65% |
▷ Public methods | 369 | 81.10% |
▷ Protected methods | 58 | 12.75% |
▷ Private methods | 28 | 6.15% |
Functions | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
Constants | 6 | |
▷ Global constants | 6 | 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
7 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 |
lib/admin/assets/img/twitter-little-bird-white.png | 0.33KB | 0.34KB | 0.00% |
assets/images/admin-options-page/social-warfare-pro-light.png | 12.86KB | 7.24KB | ▼ 43.72% |
assets/images/admin-options-page/new_share_counts.png | 28.70KB | 11.62KB | ▼ 59.50% |
lib/admin/assets/img/twitter-little-bird.png | 0.32KB | 0.33KB | 0.00% |
lib/admin/assets/img/twitter-little-bird-button.png | 0.28KB | 0.28KB | 0.00% |