Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.81ms] Passed 4 tests
A check of server-side resources used by Social Toolbar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.32 ▼0.33 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.17 ▼1.93 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.46 ▼3.75 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 85.35 ▼9.21 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.85 ▲1.21 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
social_toolbar_code |
social_toolbar_values |
Browser metrics Passed 4 tests
Social Toolbar: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲58 | 13.23 ▼1.14 | 4.56 ▲2.45 | 43.73 ▲0.72 |
Dashboard /wp-admin | 2,224 ▲36 | 4.93 ▼0.92 | 114.82 ▲2.09 | 75.38 ▲30.64 |
Posts /wp-admin/edit.php | 2,104 ▲18 | 2.02 ▼0.03 | 36.69 ▲0.51 | 36.27 ▲3.07 |
Add New Post /wp-admin/post-new.php | 1,680 ▲146 | 21.89 ▼1.14 | 771.00 ▲87.38 | 54.84 ▼0.02 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.15 ▼0.02 | 96.86 ▼1.62 | 66.42 ▲20.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- social_toolbar_code
- db_upgraded
- social_toolbar_values
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant social_toolbar_PATH - assumed 'social_toolbar_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/social-toolbar/options.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/social-toolbar/social-toolbar.php:31
- > PHP Warning
Use of undefined constant DD_SOCIAL_TOOLBAR_PATH - assumed 'DD_SOCIAL_TOOLBAR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/social-toolbar/go_pro_ad.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/social-toolbar/our_feeds.php:3
- > PHP Warning
Use of undefined constant WP_CONTENT_URL - assumed 'WP_CONTENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/social-toolbar/options.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/social-toolbar/go_pro_ad.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/social-toolbar/options.php:41
- > PHP Warning
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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Brand your website), #2 (Make it all 1 color), #3 (IBM uses it!), #4 (Put Toolbar at top of your site), #5 (iPad responsive), #6 (RSS Feed), #7 (Custom Message Feed), #8 (Recent Tweet Feed), #9 (Mobile Responsive), #10 (General Settings), #11 (Customize Settings), #12 (Share Button Settings), #13 (Feed Settings), #14 (Installation Options)
- Tags: Too many tags (26 tag instead of maximum 10); only the first 5 tags are used in your directory listing
social-toolbar/social-toolbar.php 92% from 13 tests
The main PHP script in "Social Toolbar" version 3.2 is automatically included on every request by WordPress
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 302 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected321 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 50 | 25 | 320 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wp_social_toolbar_logo.png | 2.41KB | 1.49KB | ▼ 38.31% |
images/x.png | 1.04KB | 1.25KB | 0.00% |
images/DaddyDesignLogo-toolbar.png | 7.42KB | 3.69KB | ▼ 50.28% |
images/toolslogo.png | 4.23KB | 3.53KB | ▼ 16.72% |
images/icon.png | 0.28KB | 0.37KB | 0.00% |