Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲2.29MB] [CPU: ▲12.29ms] Passed 4 tests
This is a short check of server-side resources used by Social Rocket - Social Sharing Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.47 ▲1.01 | 44.50 ▲3.52 |
Dashboard /wp-admin | 6.24 ▲2.93 | 60.11 ▲10.33 |
Posts /wp-admin/edit.php | 6.24 ▲2.88 | 61.93 ▲15.29 |
Add New Post /wp-admin/post-new.php | 8.24 ▲2.35 | 122.45 ▲30.04 |
Media Library /wp-admin/upload.php | 6.24 ▲3.00 | 54.35 ▲20.01 |
Social Rocket Callbacks /wp-admin/admin.php?page=social_rocket_callbacks | 6.24 | 44.78 |
License Keys /wp-admin/admin.php?page=social_rocket_license_keys | 6.24 | 44.38 |
Floating Buttons /wp-admin/admin.php?page=social_rocket_floating_buttons | 6.24 | 51.99 |
Click to Tweet /wp-admin/admin.php?page=social_rocket_click_to_tweet | 6.24 | 77.50 |
Get Started /wp-admin/admin.php?page=social_rocket | 6.24 | 45.87 |
Inline Buttons /wp-admin/admin.php?page=social_rocket_inline_buttons | 6.24 | 50.28 |
Settings /wp-admin/admin.php?page=social_rocket_settings | 6.24 | 48.75 |
Server storage [IO: ▲4.20MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 94 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_social_rocket_count_data |
wp_social_rocket_count_queue |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
social_rocket_settings |
social_rocket_admin_notices |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Social Rocket - Social Sharing Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,976 ▲230 | 14.22 ▼0.13 | 6.33 ▲4.51 | 37.14 ▼4.98 |
Dashboard /wp-admin | 2,274 ▲94 | 5.04 ▼0.53 | 96.78 ▲1.72 | 42.41 ▲5.12 |
Posts /wp-admin/edit.php | 2,224 ▲124 | 2.17 ▲0.14 | 46.24 ▲5.61 | 35.66 ▼2.68 |
Add New Post /wp-admin/post-new.php | 6,702 ▲5,167 | 28.25 ▲10.23 | 910.06 ▲293.62 | 50.48 ▼9.64 |
Media Library /wp-admin/upload.php | 1,486 ▲83 | 4.63 ▲0.41 | 100.47 ▼1.77 | 44.27 ▲2.49 |
Social Rocket Callbacks /wp-admin/admin.php?page=social_rocket_callbacks | 875 | 2.17 | 29.37 | 26.35 |
License Keys /wp-admin/admin.php?page=social_rocket_license_keys | 1,009 | 2.28 | 32.86 | 30.49 |
Floating Buttons /wp-admin/admin.php?page=social_rocket_floating_buttons | 8,497 | 3.47 | 306.38 | 41.99 |
Click to Tweet /wp-admin/admin.php?page=social_rocket_click_to_tweet | 1,949 | 3.36 | 75.91 | 50.79 |
Get Started /wp-admin/admin.php?page=social_rocket | 1,038 | 2.30 | 32.14 | 29.53 |
Inline Buttons /wp-admin/admin.php?page=social_rocket_inline_buttons | 12,832 | 4.41 | 304.34 | 40.43 |
Settings /wp-admin/admin.php?page=social_rocket_settings | 1,614 | 2.30 | 32.10 | 28.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_social_rocket_count_data
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- social_rocket_admin_notices
- can_compress_scripts
- theysaidso_admin_options
- social_rocket_settings
- db_upgraded
- 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)
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=social_rocket_settings
- > User warning in wp-includes/formatting.php+5526
Warning: wp_strip_all_tags expects parameter #1 ($text) to be a string, object given.
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 fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/social-rocket/vendor/wp-background-processing/wp-background-processing.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/social-rocket/vendor/wp-background-processing/classes/wp-background-process.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
social-rocket/social-rocket.php Passed 13 tests
"Social Rocket - Social Sharing Plugin" version 1.3.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
30 characters long description:
Social Sharing... to the Moon!
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
Good job! No executable or dangerous file extensions detected34,895 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 2,106 | 1,946 | 11,401 |
CSS | 16 | 3,946 | 178 | 10,592 |
SVG | 3 | 0 | 0 | 9,552 |
JavaScript | 5 | 588 | 518 | 3,228 |
Markdown | 1 | 54 | 0 | 104 |
JSON | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 83.61 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 680.00 |
Average method complexity | 5.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 81.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 2 | 11.11% |
▷ Concrete classes | 16 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 305 | |
▷ Static methods | 40 | 13.11% |
▷ Public methods | 207 | 67.87% |
▷ Protected methods | 98 | 32.13% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 90 | |
▷ Global constants | 4 | 4.44% |
▷ Class constants | 86 | 95.56% |
▷ Public constants | 86 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/sidebar-1.png | 12.76KB | 4.66KB | ▼ 63.49% |
admin/img/social-image-placeholder.png | 16.04KB | 7.54KB | ▼ 52.96% |
admin/img/intro-floating.png | 5.47KB | 3.05KB | ▼ 44.24% |
admin/img/intro-social-extras.png | 4.02KB | 2.04KB | ▼ 49.11% |
admin/img/intro-inline.png | 5.40KB | 3.06KB | ▼ 43.33% |