Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/wp-woo-product-social-share/includes/wpsi_render_front_icons.php+28
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.22ms] Passed 4 tests
A check of server-side resources used by Social Share For WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.39 ▲1.10 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.45 ▼4.69 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.61 ▼8.45 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 102.38 ▼3.20 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.66 ▼0.53 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Social Share For WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.17 ▼0.47 | 1.62 ▼0.18 | 44.15 ▼0.31 |
Dashboard /wp-admin | 2,192 ▲18 | 5.56 ▼0.02 | 121.56 ▲33.96 | 59.77 ▲17.88 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.00 | 40.21 ▲4.54 | 35.37 ▼2.80 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.68 ▲0.39 | 619.60 ▼24.41 | 48.92 ▼7.87 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.22 ▼0.01 | 102.10 ▲4.41 | 44.45 ▲0.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-woo-product-social-share/images/data/template.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-woo-product-social-share/includes/wpsi_enqueue.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-woo-product-social-share/includes/wpsi_modal_template.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-woo-product-social-share/includes/wpsi_render_front_icons.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Screenshot #1 (Select your button position where you need to show social icons.) image missing
wp-woo-product-social-share/wpsi-social-share-for-woocommerce.php 85% from 13 tests
This is the main PHP file of "Social Share For WooCommerce" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-woo-product-social-share.php" instead of "wpsi-social-share-for-woocommerce.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin2,695 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 151 | 3 | 2,088 |
PHP | 13 | 277 | 156 | 448 |
PO File | 1 | 46 | 49 | 112 |
JavaScript | 6 | 26 | 11 | 47 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon/icon.png | 3.29KB | 1.63KB | ▼ 50.49% |
images/icon/square.png | 16.25KB | 1.94KB | ▼ 88.07% |
images/icon/rounded.png | 16.49KB | 2.14KB | ▼ 87.02% |
images/icon/circle.png | 18.07KB | 2.97KB | ▼ 83.56% |