Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.37MB] [CPU: ▲5.31ms] Passed 4 tests
This is a short check of server-side resources used by ShareThis Reaction Buttons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.35 | 44.47 ▼0.34 |
Dashboard /wp-admin | 53.84 ▲50.45 | 10,401,678.36 ▲10,401,602.36 |
Posts /wp-admin/edit.php | 3.81 ▲0.41 | 55.84 ▲3.69 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.38 | 110.46 ▲13.22 |
Media Library /wp-admin/upload.php | 3.62 ▲0.34 | 39.76 ▲4.69 |
Server storage [IO: ▲3.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, 12 new options
New WordPress options |
---|
db_upgraded |
sharethis_property_id |
widget_recent-comments |
sharethis_token |
sharethis_first_product |
sharethis_button_config |
widget_recent-posts |
widget_st_reaction_widget |
can_compress_scripts |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for ShareThis Reaction Buttons
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲146 | 13.84 ▼0.52 | 703.72 ▲702.16 | 40.59 ▼0.11 |
Dashboard /wp-admin | 2,264 ▲84 | 4.95 ▼0.70 | 90.13 ▼8.42 | 39.30 ▼2.74 |
Posts /wp-admin/edit.php | 2,165 ▲65 | 2.43 ▲0.40 | 51.36 ▲15.80 | 34.33 ▲0.01 |
Add New Post /wp-admin/post-new.php | 6,269 ▲4,743 | 26.23 ▲3.23 | 880.82 ▲180.67 | 78.75 ▲23.48 |
Media Library /wp-admin/upload.php | 1,465 ▲62 | 4.54 ▲0.34 | 108.47 ▼1.28 | 43.75 ▼6.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_st_reaction_widget
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sharethis-reaction-buttons/templates/reaction-buttons/button-config.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sharethis-reaction-buttons/templates/reaction-buttons/onoff-buttons.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/sharethis-reaction-buttons/templates/reaction-buttons/list.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/sharethis-reaction-buttons/templates/minute-control/meta-box.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/sharethis-reaction-buttons/templates/reaction-buttons/reaction-button-settings.php:15
- > PHP Fatal error
Uncaught Error: Class 'SharethisReactionButtons\\Plugin_Base' not found in wp-content/plugins/sharethis-reaction-buttons/php/class-plugin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function SharethisReactionButtons\\trailingslashit() in wp-content/plugins/sharethis-reaction-buttons/php/class-plugin-base.php:149
- > PHP Fatal error
Uncaught Error: Call to undefined function SharethisReactionButtons\\trailingslashit() in wp-content/plugins/sharethis-reaction-buttons/php/class-plugin-base.php:149
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sharethis-reaction-buttons/templates/reaction-buttons/shortcode-templatecode.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sharethis-reaction-buttons/php/class-button-widget.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
sharethis-reaction-buttons/sharethis-reaction-buttons.php 92% from 13 tests
The main PHP file in "ShareThis Reaction Buttons" ver. 1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
Success! There were no dangerous files found in this plugin5,270 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 2,509 |
PHP | 14 | 274 | 655 | 1,306 |
CSS | 3 | 156 | 5 | 843 |
JavaScript | 4 | 129 | 180 | 606 |
SVG | 6 | 0 | 0 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 41.40 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 4.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 51 | 80.95% |
▷ Protected methods | 1 | 1.59% |
▷ Private methods | 11 | 17.46% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.54MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/sharethis-setup-logo.png | 48.91KB | 20.52KB | ▼ 58.05% |
assets/banner-772x250.png | 70.00KB | 17.94KB | ▼ 74.37% |
assets/128x128.png | 11.83KB | 5.10KB | ▼ 56.92% |
assets/256x256.png | 19.83KB | 7.48KB | ▼ 62.29% |
assets/screenshot-3.png | 219.83KB | 62.38KB | ▼ 71.62% |