Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.50MB] [CPU: ▼0.45ms] Passed 4 tests
A check of server-side resources used by AddToAny Share Buttons
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.37 | 42.25 ▲1.31 |
Dashboard /wp-admin | 3.85 ▲0.54 | 48.11 ▼1.04 |
Posts /wp-admin/edit.php | 3.96 ▲0.61 | 46.94 ▲1.01 |
Add New Post /wp-admin/post-new.php | 6.43 ▲0.54 | 82.28 ▼3.09 |
Media Library /wp-admin/upload.php | 3.77 ▲0.54 | 43.72 ▲6.39 |
AddToAny /wp-admin/options-general.php?page=addtoany | 3.75 | 33.90 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 150 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_a2a_follow_widget |
widget_recent-comments |
widget_theysaidso_widget |
widget_a2a_share_save_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
AddToAny Share Buttons: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,052 ▲291 | 14.24 ▼0.42 | 23.93 ▲22.18 | 46.94 ▲2.21 |
Dashboard /wp-admin | 2,240 ▲60 | 5.66 ▼0.01 | 85.87 ▼3.94 | 37.68 ▼2.15 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 2.27 ▲0.26 | 40.73 ▲5.66 | 34.17 ▼3.67 |
Add New Post /wp-admin/post-new.php | 6,242 ▲4,714 | 26.06 ▲2.87 | 903.57 ▲211.48 | 65.63 ▲3.87 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.38 ▲0.19 | 115.78 ▲1.94 | 47.26 ▲0.88 |
AddToAny /wp-admin/options-general.php?page=addtoany | 3,100 | 5.58 | 211.82 | 55.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- widget_a2a_follow_widget
- widget_recent-comments
- can_compress_scripts
- widget_a2a_share_save_widget
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% 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 take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/add-to-any/addtoany.widgets.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-to-any/addtoany.admin.php:76
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/add-to-any/add-to-any.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/add-to-any/addtoany.compat.php:3
- > 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 97% 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:
- Tags: Please reduce the number of tags, currently 26 tag instead of maximum 10
add-to-any/add-to-any.php Passed 13 tests
This is the main PHP file of "AddToAny Share Buttons" version 1.8.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
140 characters long description:
Share buttons for your pages including AddToAny's universal sharing button, Facebook, Mastodon, LinkedIn, Pinterest, WhatsApp and many more.
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
Everything looks great! No dangerous files found in this plugin4,614 lines of code in 134 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 472 | 426 | 2,780 |
PO File | 8 | 638 | 840 | 1,665 |
SVG | 115 | 0 | 0 | 119 |
CSS | 2 | 7 | 7 | 26 |
JavaScript | 2 | 2 | 3 | 16 |
XML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.76 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 52 | |
▷ Named functions | 50 | 96.15% |
▷ Anonymous functions | 2 | 3.85% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/pinterest_pin_2x.png | 1.27KB | 1.27KB | 0.00% |
icons/linkedin_share_2x.png | 1.65KB | 1.65KB | 0.00% |
icons/twitter_tweet_2x.png | 1.17KB | 1.19KB | 0.00% |
icons/facebook_like_2x.png | 0.84KB | 0.85KB | 0.00% |