Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in social_bookmark is deprecated since version 4.3.0! Use __construct() instead.
Server metrics [RAM: ▼1.96MB] [CPU: ▼52.07ms] Passed 4 tests
Analyzing server-side resources used by Social Bookmark
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 5.39 ▼37.70 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.14 ▼39.20 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 7.95 ▼37.72 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.93 ▼93.65 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.29 ▼28.12 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_social_bookmark |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Social Bookmark
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲148 | 13.63 ▼0.75 | 5.21 ▲3.39 | 41.21 ▼1.30 |
Dashboard /wp-admin | 2,209 ▲17 | 4.89 ▼0.20 | 103.77 ▼8.77 | 40.75 ▼2.88 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.03 ▲0.01 | 34.14 ▼2.26 | 32.35 ▼2.45 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.21 ▲0.02 | 664.04 ▲70.27 | 64.80 ▲18.36 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.17 ▼0.00 | 102.01 ▲5.82 | 46.12 ▲1.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in social_bookmark is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options detected upon uninstall: 7 options
- widget_social_bookmark
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/social-bookmark-dyc/social-bookmark-dyc-info.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_title() in wp-content/plugins/social-bookmark-dyc/print.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-bookmark-dyc/social-bookmark-dyc.php:29
- > 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
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Contributors: The plugin contributors field is not present
social-bookmark-dyc/social-bookmark-dyc.php 92% from 13 tests
The main file in "Social Bookmark" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 184 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin680 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 119 | 202 | 459 |
CSS | 1 | 42 | 3 | 157 |
JavaScript | 2 | 11 | 0 | 64 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 58.00 |
▷ Minimum class complexity | 58.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 4.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.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 | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/twitter.png | 0.51KB | 0.58KB | 0.00% |
icons/google+.png | 0.62KB | 0.69KB | 0.00% |
icons/facebook.png | 0.35KB | 0.35KB | ▼ 0.83% |
icons/pinterest.png | 0.55KB | 0.63KB | 0.00% |