Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/addthis-related-posts/backend/AddThisPlugin.php+203
Undefined index: cms_version
Server metrics [RAM: ▲1.18MB] [CPU: ▼287.77ms] Passed 4 tests
Analyzing server-side resources used by WordPress Related Posts Plugin – AddThis
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.67 ▲1.15 | 63.65 ▲16.99 |
Dashboard /wp-admin | 4.61 ▲1.20 | 40.14 ▲6.99 |
Posts /wp-admin/edit.php | 4.84 ▲1.19 | 43.89 ▲7.46 |
Add New Post /wp-admin/post-new.php | 8.14 ▲1.16 | 100.77 ▼1,172.28 |
Media Library /wp-admin/upload.php | 4.56 ▲1.26 | 31.31 ▲6.77 |
Related Posts /wp-admin/admin.php?page=addthis_recommended_content | 4.48 | 29.89 |
Advanced Settings /wp-admin/admin.php?page=addthis_advanced_settings | 4.48 | 31.03 |
Home /wp-admin/admin.php?page=addthis_registration | 4.48 | 29.13 |
Server storage [IO: ▲3.53MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 321 new files
Database: no new tables, 5 new options
New WordPress options |
---|
addthis_follow_buttons_settings |
widget_addthis_global_options_widget |
addthis_shared_settings |
addthis_recommended_content_settings |
widget_addthis_tool_by_class_name_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Related Posts Plugin – AddThis
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,899 ▲145 | 18.05 ▲2.25 | 77.59 ▲71.48 | 2.71 ▼0.04 |
Dashboard /wp-admin | 2,939 ▲84 | 6.29 ▲0.10 | 120.29 ▼19.61 | 171.70 ▲11.56 |
Posts /wp-admin/edit.php | 2,728 ▲40 | 3.14 ▼0.10 | 63.53 ▼2.48 | 141.19 ▼2.36 |
Add New Post /wp-admin/post-new.php | 1,735 ▲61 | 18.35 ▼3.96 | 395.18 ▼9.79 | 209.68 ▲36.78 |
Media Library /wp-admin/upload.php | 1,740 ▲42 | 5.63 ▲0.07 | 137.53 ▼18.15 | 218.70 ▲28.73 |
Related Posts /wp-admin/admin.php?page=addthis_recommended_content | 3,668 | 8.67 | 310.09 | 146.40 |
Advanced Settings /wp-admin/admin.php?page=addthis_advanced_settings | 7,785 | 12.27 | 400.56 | 220.13 |
Home /wp-admin/admin.php?page=addthis_registration | 4,884 | 8.29 | 437.80 | 174.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/addthis-related-posts/backend/AddThisPlugin.php+237
Undefined index: cms_version
- This plugin does not fully uninstall, leaving 5 options in the database
- addthis_recommended_content_settings
- addthis_follow_buttons_settings
- addthis_shared_settings
- widget_addthis_global_options_widget
- widget_addthis_tool_by_class_name_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 29× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/addthis-related-posts/backend/AddThisGlobalOptionsWidget.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis-related-posts/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis-related-posts/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis-related-posts/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis-related-posts/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis-related-posts/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis-related-posts/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis-related-posts/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis-related-posts/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addthis-related-posts/backend/AddThisAdminUtilities.php:63
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=addthis_registration
- > Network (severe)
https://www.addthis.com/darkseid/plugins/wprp/v/2.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
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6 in addthis-related-posts/assets to your readme.txt
addthis-related-posts/bootstrap.php 77% from 13 tests
"WordPress Related Posts Plugin – AddThis" version 2.2.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("addthis-related-posts.php" instead of "bootstrap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this 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
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
43 PNG files occupy 0.49MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
frontend/src/images/tool-example-smlsh.png | 4.23KB | 2.95KB | ▼ 30.24% |
frontend/src/images/tool-example-tst.png | 1.90KB | 2.69KB | 0.00% |
(invalid) frontend/src/images/tool-thumb-sharing-expanding.png | 41.17KB | 0.00KB | ▼ 100.00% |
frontend/src/images/tool-example-wnm.png | 4.60KB | 2.75KB | ▼ 40.22% |
frontend/src/images/menu-icon.png | 1.55KB | 0.68KB | ▼ 56.53% |