Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/addthis-all/backend/AddThisPlugin.php+203
Undefined index: cms_version
Server metrics [RAM: ▲1.18MB] [CPU: ▼284.19ms] Passed 4 tests
A check of server-side resources used by WordPress Website Tools Plugin – AddThis
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.68 ▲1.17 | 62.79 ▲6.91 |
Dashboard /wp-admin | 4.61 ▲1.20 | 43.44 ▲10.27 |
Posts /wp-admin/edit.php | 4.83 ▲1.19 | 47.37 ▲9.63 |
Add New Post /wp-admin/post-new.php | 8.13 ▲1.16 | 102.81 ▼1,163.57 |
Media Library /wp-admin/upload.php | 4.55 ▲1.26 | 36.96 ▲11.97 |
Advanced Settings /wp-admin/admin.php?page=addthis_advanced_settings | 4.47 | 33.78 |
Home /wp-admin/admin.php?page=addthis_registration | 4.47 | 30.74 |
Server storage [IO: ▲3.53MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 321 new files
Database: no new tables, 5 new options
New WordPress options |
---|
addthis_recommended_content_settings |
widget_addthis_global_options_widget |
widget_addthis_tool_by_class_name_widget |
addthis_follow_buttons_settings |
addthis_shared_settings |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Website Tools Plugin – AddThis
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,875 ▲131 | 18.41 ▲2.76 | 80.90 ▲74.39 | 3.02 ▲0.83 |
Dashboard /wp-admin | 2,911 ▲53 | 6.16 ▲0.01 | 116.16 ▼28.64 | 180.47 ▼36.83 |
Posts /wp-admin/edit.php | 2,725 ▲31 | 3.12 ▼0.11 | 64.08 ▼3.68 | 142.18 ▼0.33 |
Add New Post /wp-admin/post-new.php | 1,732 ▼20 | 18.58 ▼3.05 | 419.77 ▼15.89 | 209.69 ▲30.78 |
Media Library /wp-admin/upload.php | 1,732 ▲34 | 5.63 ▲0.09 | 125.85 ▼19.24 | 211.02 ▼34.23 |
Advanced Settings /wp-admin/admin.php?page=addthis_advanced_settings | 7,778 | 12.28 | 424.46 | 218.37 |
Home /wp-admin/admin.php?page=addthis_registration | 4,881 | 8.36 | 467.88 | 185.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/addthis-all/backend/AddThisPlugin.php+237
Undefined index: cms_version
- This plugin did not uninstall successfully, leaving 5 options in the database
- addthis_follow_buttons_settings
- widget_addthis_tool_by_class_name_widget
- widget_addthis_global_options_widget
- addthis_shared_settings
- addthis_recommended_content_settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
- 29× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis-all/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis-all/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis-all/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/addthis-all/backend/AddThisGlobalOptionsWidget.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis-all/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis-all/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis-all/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis-all/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis-all/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis-all/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=addthis_registration
- > Network (severe)
https://www.addthis.com/darkseid/plugins/wpwt/v/3.2.6/site/ - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in addthis-all/assets to your readme.txt
addthis-all/bootstrap.php 85% from 13 tests
"WordPress Website Tools Plugin – AddThis" version 3.2.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("addthis-all.php" instead of "bootstrap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin27,666 lines of code in 264 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 87 | 922 | 1,195 | 8,754 |
PHP | 32 | 1,159 | 3,348 | 6,286 |
HTML | 109 | 535 | 106 | 6,192 |
PO File | 2 | 704 | 1,031 | 2,671 |
CSS | 17 | 280 | 289 | 1,648 |
JSON | 4 | 0 | 0 | 1,298 |
SVG | 8 | 12 | 0 | 392 |
Markdown | 3 | 111 | 0 | 352 |
XML | 2 | 8 | 1 | 73 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 35.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 131.00 |
Average method complexity | 4.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 30 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 262 | |
▷ Static methods | 44 | 16.79% |
▷ Public methods | 218 | 83.21% |
▷ Protected methods | 32 | 12.21% |
▷ Private methods | 12 | 4.58% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 21 | 100.00% |
▷ Public constants | 21 | 100.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
43 PNG files occupy 0.49MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) frontend/src/images/tool-thumb-sharing-inline.png | 26.78KB | 0.00KB | ▼ 100.00% |
frontend/src/images/tool-list-thumb-shfs.png | 1.70KB | 0.21KB | ▼ 87.57% |
frontend/src/images/icon-shape-round.png | 1.00KB | 0.98KB | ▼ 1.47% |
frontend/src/images/social-twitter.png | 18.42KB | 0.97KB | ▼ 94.73% |
frontend/src/images/tool-example-wnm.png | 4.60KB | 2.75KB | ▼ 40.22% |