Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼1.65MB] [CPU: ▼58.56ms] Passed 4 tests
A check of server-side resources used by Share Buttons – Social Media
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.34 ▼1.13 | 6.10 ▼39.83 |
Dashboard /wp-admin | 2.36 ▼0.95 | 7.67 ▼50.03 |
Posts /wp-admin/edit.php | 2.36 ▼1.00 | 8.30 ▼41.56 |
Add New Post /wp-admin/post-new.php | 2.36 ▼3.53 | 6.50 ▼102.82 |
Media Library /wp-admin/upload.php | 2.36 ▼0.87 | 7.65 ▼34.53 |
Our Products /wp-admin/admin.php?page=Our-products | 2.36 | 7.24 |
Server storage [IO: ▲1.43MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 121 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_rich_web_share_buttons_style_options |
wp_rich_web_share_buttons_short_options |
wp_rich_web_share_buttons_general_options |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_wich-web-share-button-widget |
Browser metrics Passed 4 tests
Checking browser requirements for Share Buttons – Social Media
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲93 | 13.33 ▼1.40 | 1.69 ▲0.02 | 42.30 ▼1.77 |
Dashboard /wp-admin | 2,254 ▲77 | 5.80 ▲0.26 | 93.31 ▼12.61 | 76.90 ▲34.77 |
Posts /wp-admin/edit.php | 2,161 ▲64 | 2.35 ▲0.36 | 39.09 ▲3.42 | 35.42 ▼0.29 |
Add New Post /wp-admin/post-new.php | 1,573 ▲47 | 23.48 ▲0.04 | 772.94 ▲137.86 | 39.80 ▼13.08 |
Media Library /wp-admin/upload.php | 1,459 ▲65 | 4.47 ▲0.05 | 104.37 ▲3.06 | 87.07 ▲42.17 |
Our Products /wp-admin/admin.php?page=Our-products | 1,008 | 1.92 | 34.46 | 46.66 |
Share Buttons Manager /wp-admin/admin.php?page=Rich-Web Share Buttons Admin?Rich_Web_ShButtons_Nonce=19a31cbc92 | 28 | 0.42 | 0.07 | 3.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wp_localize_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the rich-web-buttons-scripts handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie tables were found after uninstall: 3 tables
- wp_rich_web_share_buttons_style_options
- wp_rich_web_share_buttons_general_options
- wp_rich_web_share_buttons_short_options
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_wich-web-share-button-widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=Our-products
- > User notice in wp-includes/functions.php+5905
Function wp_localize_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the rich-web-buttons-scripts handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/admin.php?page=Our-products
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the rich-web-buttons-admin-style-icons handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/admin.php?page=Our-products
- > Notice in wp-content/plugins/rich-web-share-button/Share-Buttons.php+24
Undefined variable: bare_url
- > GET request to /wp-admin/admin.php?page=Our-products
- > Notice in wp-content/plugins/rich-web-share-button/Share-Buttons.php+24
Undefined variable: comment_id
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
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rich-web-share-button/Rich-Web-Share-Button-Ajax.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rich-web-share-button/Rich-Web-Share-Button-Ajax.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rich-web-share-button/Rich-Web-SB-Widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rich-web-share-button/Rich-Web-SB-Shortcode.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=Rich-Web Share Buttons Admin?Rich_Web_ShButtons_Nonce=19a31cbc92
- > Network (severe)
wp-admin/admin.php?page=Rich-Web%20Share%20Buttons%20Admin?Rich_Web_ShButtons_Nonce=19a31cbc92 - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
rich-web-share-button/Share-Buttons.php 85% from 13 tests
"Share Buttons – Social Media" version 1.0.2'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:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rich-web-share-button.php" instead of "Share-Buttons.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 176 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin3,828 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 48 | 34 | 1,805 |
JavaScript | 3 | 75 | 0 | 861 |
SVG | 1 | 0 | 0 | 685 |
CSS | 3 | 38 | 1 | 477 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.69 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
99 compressed PNG files occupy 0.34MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Images/icons/su_icon_2.png | 1.40KB | 1.31KB | ▼ 6.62% |
Images/icons/digg_icon_3.png | 1.88KB | 1.51KB | ▼ 19.55% |
Images/icons/pi_icon_8.png | 1.45KB | 1.20KB | ▼ 17.17% |
Images/icons/vk_icon_4.png | 0.95KB | 0.79KB | ▼ 17.06% |
Images/icons/tw_icon_3.png | 1.83KB | 1.56KB | ▼ 14.60% |