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: ▼0.19MB] [CPU: ▼12.95ms] Passed 4 tests
Server-side resources used by ShareThis Follow Buttons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.40 ▼3.20 |
Dashboard /wp-admin | 3.37 ▲0.07 | 46.54 ▼4.84 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 44.89 ▼4.05 |
Add New Post /wp-admin/post-new.php | 4.89 ▼0.99 | 56.37 ▼39.70 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.88 ▲2.34 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_recent-comments |
sharethis_inline-follow_settings |
sharethis_token |
widget_theysaidso_widget |
can_compress_scripts |
sharethis_button_config |
sharethis_first_product |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
A check of browser resources used by ShareThis Follow Buttons
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲186 | 14.28 ▼0.06 | 603.66 ▲601.96 | 40.02 ▼4.69 |
Dashboard /wp-admin | 2,263 ▲82 | 5.10 ▼0.52 | 94.92 ▼20.38 | 42.15 ▼3.21 |
Posts /wp-admin/edit.php | 2,147 ▲44 | 2.42 ▲0.43 | 51.47 ▲10.88 | 34.42 ▲0.03 |
Add New Post /wp-admin/post-new.php | 6,265 ▲4,732 | 26.26 ▲3.36 | 912.53 ▲320.39 | 60.25 ▲2.20 |
Media Library /wp-admin/upload.php | 1,466 ▲66 | 4.59 ▲0.42 | 102.77 ▲8.31 | 39.77 ▼2.51 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- widget_st_follow_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'SharethisFollowButtons\\Plugin_Base' not found in wp-content/plugins/sharethis-follow-buttons/php/class-plugin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/sharethis-follow-buttons/templates/minute-control/meta-box.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function SharethisFollowButtons\\trailingslashit() in wp-content/plugins/sharethis-follow-buttons/php/class-plugin-base.php:149
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/sharethis-follow-buttons/templates/follow-buttons/widget.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sharethis-follow-buttons/php/class-button-widget.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sharethis-follow-buttons/templates/follow-buttons/shortcode-templatecode.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/sharethis-follow-buttons/templates/follow-buttons/follow-button-settings.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/sharethis-follow-buttons/templates/follow-buttons/list.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sharethis-follow-buttons/templates/follow-buttons/button-config.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sharethis-follow-buttons/templates/follow-buttons/enable-buttons.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #4 (Register your Follow buttons.) image not found
sharethis-follow-buttons/sharethis-follow-buttons.php 92% from 13 tests
"ShareThis Follow Buttons" version 1.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin3,444 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 273 | 665 | 1,612 |
CSS | 3 | 179 | 7 | 935 |
JavaScript | 4 | 161 | 191 | 860 |
Markdown | 2 | 16 | 0 | 25 |
JSON | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 3.86 |
▷ 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 | 3 | 4.76% |
▷ Public methods | 52 | 82.54% |
▷ Protected methods | 1 | 1.59% |
▷ Private methods | 10 | 15.87% |
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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/finished-step.png | 2.65KB | 1.30KB | ▼ 50.72% |
assets/sharethis-setup-logo.png | 48.91KB | 20.52KB | ▼ 58.05% |