Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.47MB] [CPU: ▼2.62ms] Passed 4 tests
Analyzing server-side resources used by ShareThis Share Buttons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.48 | 50.61 ▲11.27 |
Dashboard /wp-admin | 3.82 ▲0.48 | 45.69 ▼23.43 |
Posts /wp-admin/edit.php | 3.87 ▲0.52 | 47.09 ▼0.36 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.49 | 105.81 ▲5.62 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 39.21 ▲7.68 |
Server storage [IO: ▲0.97MB] [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: 42 new files
Database: no new tables, 16 new options
New WordPress options |
---|
sharethis_inline |
sharethis_token |
can_compress_scripts |
sharethis_property_id |
sharethis_button_config |
sharethis_sticky_settings |
sharethis_inline_settings |
widget_recent-posts |
sharethis_fract |
widget_st_button_widget |
... |
Browser metrics Passed 4 tests
ShareThis Share Buttons: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲168 | 13.91 ▼0.22 | 716.52 ▲714.81 | 36.00 ▼9.72 |
Dashboard /wp-admin | 2,259 ▲78 | 5.65 ▼0.06 | 82.71 ▼23.79 | 34.96 ▼11.58 |
Posts /wp-admin/edit.php | 2,161 ▲61 | 2.02 ▲0.05 | 46.78 ▲8.52 | 37.41 ▼0.02 |
Add New Post /wp-admin/post-new.php | 6,234 ▲4,706 | 26.14 ▲2.89 | 850.94 ▲160.88 | 51.70 ▼20.28 |
Media Library /wp-admin/upload.php | 1,464 ▲61 | 4.15 ▼0.12 | 103.00 ▲5.33 | 42.38 ▼0.72 |
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
- Zombie WordPress options were found after uninstall: 7 options
- widget_st_button_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 20× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ShareThisShareButtons\\Plugin_Base' not found in wp-content/plugins/sharethis-share-buttons/php/class-plugin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sharethis-share-buttons/templates/share-buttons/shortcode-templatecode.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sharethis-share-buttons/php/class-button-widget.php:15
- > PHP Notice
Undefined variable: button in wp-content/plugins/sharethis-share-buttons/templates/share-buttons/button-config.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/sharethis-share-buttons/templates/share-buttons/list.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sharethis-share-buttons/php/class-button-widget.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/sharethis-share-buttons/templates/share-buttons/tabs.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sharethis-share-buttons/templates/share-buttons/enable-buttons.php:10
- > PHP Notice
Undefined variable: sticky_enable in wp-content/plugins/sharethis-share-buttons/templates/minute-control/meta-box.php on line 41
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/sharethis-share-buttons/templates/general/gdpr/purposes.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
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: sharethis, share buttons, social sharing, social buttons, sharing tools...
sharethis-share-buttons/sharethis-share-buttons.php 92% from 13 tests
"ShareThis Share Buttons" version 2.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected5,617 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 378 | 769 | 2,646 |
CSS | 3 | 306 | 11 | 1,633 |
JavaScript | 4 | 272 | 247 | 1,220 |
SVG | 3 | 0 | 0 | 118 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 55.40 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 4.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 3 | 4.29% |
▷ Public methods | 54 | 77.14% |
▷ Protected methods | 1 | 1.43% |
▷ Private methods | 15 | 21.43% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.65MB with 0.41MB 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/screenshot-3.png | 163.03KB | 57.77KB | ▼ 64.56% |
assets/screenshot-2.png | 164.79KB | 54.70KB | ▼ 66.81% |
assets/inline-setup-logo.png | 58.67KB | 14.64KB | ▼ 75.04% |
assets/finished-step.png | 2.65KB | 1.30KB | ▼ 50.72% |