Benchmarks
Plugin footprint 82% 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.87MB] [CPU: ▲2.12ms] 75% from 4 tests
A check of server-side resources used by Professional Social Sharing Buttons, Icons & Related Posts - Shareaholic
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 611.83ms on /wp-admin/admin.php?page=shareaholic-settings-plugin)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.36 ▲0.90 | 40.71 ▲0.78 |
Dashboard /wp-admin | 4.19 ▲0.84 | 55.31 ▼3.34 |
Posts /wp-admin/edit.php | 4.24 ▲0.88 | 55.15 ▲9.67 |
Add New Post /wp-admin/post-new.php | 6.79 ▲0.91 | 105.90 ▲4.73 |
Media Library /wp-admin/upload.php | 4.11 ▲0.88 | 42.61 ▲6.30 |
Cloud Settings /wp-admin/admin.php?page=shareaholic-settings | 4.02 | 38.99 |
Plugin Settings /wp-admin/admin.php?page=shareaholic-settings-plugin | 4.14 | 611.83 |
In-Page Code Blocks /wp-admin/admin.php?page=shareaholic-settings-code-blocks | 4.06 | 38.72 |
Server storage [IO: ▲2.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 122 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
shareaholic_settings |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Professional Social Sharing Buttons, Icons & Related Posts - Shareaholic
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,882 ▲120 | 14.57 ▼0.13 | 1.57 ▼0.27 | 37.87 ▼4.97 |
Dashboard /wp-admin | 2,272 ▲95 | 5.67 ▲0.05 | 90.70 ▲3.06 | 86.02 ▲46.42 |
Posts /wp-admin/edit.php | 2,184 ▲84 | 1.98 ▲0.03 | 39.63 ▲0.05 | 34.85 ▼1.00 |
Add New Post /wp-admin/post-new.php | 6,457 ▲4,928 | 27.18 ▲3.97 | 850.45 ▲256.94 | 54.74 ▼4.56 |
Media Library /wp-admin/upload.php | 1,480 ▲80 | 4.21 ▲0.04 | 107.09 ▲11.60 | 45.21 ▲2.63 |
Cloud Settings /wp-admin/admin.php?page=shareaholic-settings | 1,048 | 3.23 | 84.55 | 76.96 |
Plugin Settings /wp-admin/admin.php?page=shareaholic-settings-plugin | 1,623 | 8.58 | 289.95 | 105.16 |
In-Page Code Blocks /wp-admin/admin.php?page=shareaholic-settings-code-blocks | 1,714 | 8.69 | 223.70 | 70.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/shareaholic/shareaholic.php
- > /wp-content/plugins/shareaholic/templates/admin_form.php
- > /wp-content/plugins/shareaholic/templates/verify_api_key_js.php
- 33× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: api_key in wp-content/plugins/shareaholic/templates/admin.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/shareaholic/languages/shareaholic-translations.php:3
- > PHP Notice
Undefined variable: verification_key in wp-content/plugins/shareaholic/templates/verify_api_key_js.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'ShareaholicUtilities' not found in wp-content/plugins/shareaholic/templates/script_chat.php:1
- > PHP Warning
Use of undefined constant SHAREAHOLIC_PATH - assumed 'SHAREAHOLIC_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shareaholic/public.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/shareaholic/templates/terms_of_service_modal.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shareaholic/sexy-bookmarks.php:3
- > PHP Fatal error
Uncaught Error: Class 'ShareaholicUtilities' not found in wp-content/plugins/shareaholic/templates/header.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/shareaholic/templates/footer.php:4
- > PHP Fatal error
require_once(): Failed opening required 'SHAREAHOLIC_PATHlib/plugin-deactivation-survey/deactivate-feedback-form.php' (include_path='.:/usr/share/php') in wp-content/plugins/shareaholic/admin.php on line 8
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shareaholic-settings-code-blocks
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'interest-cohort'.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shareaholic-settings-code-blocks
- > Other (warning) in unknown
https://js.driftt.com/include/1701624900000/mezhk4858hn8.js 0 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
Optimizations
Plugin configuration 93% 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:
- Tags: You are using too many tags: 93 tag instead of maximum 10
shareaholic/shareaholic.php 92% from 13 tests
The primary PHP file in "Professional Social Sharing Buttons, Icons & Related Posts - Shareaholic" version 9.7.10 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 187 characters long)
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
Success! There were no dangerous files found in this plugin32,731 lines of code in 77 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 2,024 | 1,940 | 11,889 |
CSS | 11 | 236 | 87 | 10,249 |
PHP | 33 | 866 | 1,584 | 5,620 |
PO File | 21 | 2,096 | 4,458 | 4,973 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 57.79 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 264.00 |
Average method complexity | 4.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 1 | 7.14% |
▷ Concrete classes | 13 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 208 | |
▷ Static methods | 186 | 89.42% |
▷ Public methods | 165 | 79.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 43 | 20.67% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 14 | |
▷ Global constants | 4 | 28.57% |
▷ Class constants | 10 | 71.43% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 0.11MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/happy-people-cover.png | 37.26KB | 36.25KB | ▼ 2.71% |
assets/css/modal-gloss.png | 2.84KB | 2.69KB | ▼ 5.43% |
assets/img/bolt.png | 2.60KB | 1.39KB | ▼ 46.46% |
assets/img/icon-256x256.png | 2.88KB | 1.47KB | ▼ 48.90% |
assets/img/shareaholic_com_sprite.png | 3.21KB | 2.16KB | ▼ 32.63% |