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
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/addthis/backend/AddThisPlugin.php+203
Undefined index: cms_version
Server metrics [RAM: ▲1.18MB] [CPU: ▼294.09ms] Passed 4 tests
Analyzing server-side resources used by WordPress Share Buttons Plugin – AddThis
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.67 ▲1.15 | 61.71 ▲12.74 |
Dashboard /wp-admin | 4.61 ▲1.20 | 39.55 ▲5.98 |
Posts /wp-admin/edit.php | 4.83 ▲1.19 | 44.42 ▲8.80 |
Add New Post /wp-admin/post-new.php | 8.14 ▲1.17 | 103.41 ▼1,191.31 |
Media Library /wp-admin/upload.php | 4.55 ▲1.25 | 28.92 ▲0.16 |
Home /wp-admin/admin.php?page=addthis_registration | 4.47 | 28.39 |
Advanced Settings /wp-admin/admin.php?page=addthis_advanced_settings | 4.47 | 30.68 |
Share Buttons /wp-admin/admin.php?page=addthis_sharing_buttons | 4.47 | 29.08 |
Server storage [IO: ▲3.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 321 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_addthis_tool_by_class_name_widget |
widget_addthis_global_options_widget |
addthis_shared_settings |
addthis_sharing_buttons_settings |
addthis_follow_buttons_settings |
addthis_recommended_content_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress Share Buttons Plugin – AddThis
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,891 ▲169 | 18.15 ▲2.14 | 75.69 ▲70.02 | 2.86 ▲0.45 |
Dashboard /wp-admin | 2,933 ▲79 | 6.21 ▲0.06 | 116.10 ▼31.50 | 188.15 ▲20.57 |
Posts /wp-admin/edit.php | 2,730 ▲36 | 3.14 ▼0.11 | 68.04 ▲4.94 | 146.01 ▲4.24 |
Add New Post /wp-admin/post-new.php | 1,828 ▲167 | 19.58 ▲3.05 | 400.13 ▼4.90 | 199.66 ▲44.93 |
Media Library /wp-admin/upload.php | 1,740 ▲39 | 5.62 ▲0.07 | 123.65 ▼24.52 | 203.14 ▲20.88 |
Home /wp-admin/admin.php?page=addthis_registration | 4,884 | 8.32 | 455.58 | 183.09 |
Advanced Settings /wp-admin/admin.php?page=addthis_advanced_settings | 7,771 | 12.29 | 417.32 | 194.58 |
Share Buttons /wp-admin/admin.php?page=addthis_sharing_buttons | 3,621 | 9.12 | 258.05 | 213.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/addthis/backend/AddThisPlugin.php+237
Undefined index: cms_version
- This plugin does not fully uninstall, leaving 6 options in the database
- addthis_sharing_buttons_settings
- addthis_follow_buttons_settings
- addthis_shared_settings
- widget_addthis_global_options_widget
- widget_addthis_tool_by_class_name_widget
- addthis_recommended_content_settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 29× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis/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/wpp/v/6.2.6/site/ - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in addthis/assets to your readme.txt
addthis/addthis_social_widget.php 77% from 13 tests
The main file in "WordPress Share Buttons Plugin – AddThis" v. 6.2.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and 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
- Description: Keep the plugin description shorter than 140 characters (currently 362 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("addthis.php" instead of "addthis_social_widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected27,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 is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
43 PNG files occupy 0.49MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
frontend/src/images/tool-example-smlrebv.png | 1.57KB | 1.65KB | 0.00% |
frontend/src/images/tool-example-msd.png | 4.39KB | 2.78KB | ▼ 36.67% |
frontend/src/images/share-tools-icon.png | 8.01KB | 3.12KB | ▼ 61.09% |
frontend/src/images/icon-search.png | 17.97KB | 0.47KB | ▼ 97.36% |
(invalid) frontend/src/images/tool-thumb-sharing-sidebar.png | 28.82KB | 0.00KB | ▼ 100.00% |