Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.94ms] Passed 4 tests
Server-side resources used by Social Share for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 33.54 ▼9.85 |
Dashboard /wp-admin | 3.35 ▲0.04 | 47.01 ▼2.95 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.02 ▼0.00 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.45 ▼14.96 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.55 ▲0.64 |
Server storage [IO: ▲1.28MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
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,798 ▲11 | 14.13 ▼0.26 | 1.86 ▼0.29 | 41.14 ▼3.39 |
Dashboard /wp-admin | 2,200 ▲20 | 5.54 ▲0.04 | 91.65 ▼3.24 | 37.30 ▼3.46 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.97 ▼0.00 | 39.43 ▲2.01 | 38.06 ▲0.18 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.62 ▲0.46 | 627.73 ▼78.69 | 53.50 ▼4.37 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.20 ▲0.06 | 100.41 ▼3.54 | 42.51 ▼2.70 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/product-share/product-share.php
- > /wp-content/plugins/product-share/includes/class-product-share.php
- > /wp-content/plugins/product-share/includes/class-product-share-icons.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/product-share/includes/setting-tab/general.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/product-share/includes/setting-tab/advanced.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/product-share/includes/layout.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: icons, social media, share, buttons, woocommerce...
product-share/product-share.php 92% from 13 tests
The main file in "Social Share for WooCommerce" v. 1.2.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.8" instead of "5.5")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin8,061 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 12 | 2,667 | 44 | 6,176 |
PHP | 12 | 545 | 263 | 1,800 |
JavaScript | 3 | 37 | 8 | 85 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 28.57 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 84 | |
▷ Static methods | 27 | 32.14% |
▷ Public methods | 84 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin