Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.44ms] Passed 4 tests
Analyzing server-side resources used by ShopExtra — WooCommerce Extras
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.58 ▼5.17 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.96 ▼1.69 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.49 ▲6.58 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 90.53 ▲0.94 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.14 ▲0.15 |
ShopExtra /wp-admin/options-general.php?page=shop-extra | 3.29 | 35.59 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for ShopExtra — WooCommerce Extras
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.45 ▲0.10 | 1.72 ▲0.02 | 36.30 ▼8.83 |
Dashboard /wp-admin | 2,199 ▲25 | 5.60 ▼0.04 | 91.89 ▼8.33 | 41.18 ▼2.67 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.95 ▲0.01 | 39.57 ▲0.23 | 35.62 ▼2.00 |
Add New Post /wp-admin/post-new.php | 1,529 ▲4 | 23.08 ▲1.96 | 665.05 ▲0.37 | 54.80 ▲11.68 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.20 ▲0.02 | 100.70 ▼1.92 | 41.74 ▼3.15 |
ShopExtra /wp-admin/options-general.php?page=shop-extra | 2,222 | 5.05 | 108.80 | 63.94 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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 fix the following items
- 30× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/shop-extra/includes/classes/Utilities.php
- > /wp-content/plugins/shop-extra/includes/functions/floating.php
- > /wp-content/plugins/shop-extra/includes/classes/Messages.php
- > /wp-content/plugins/shop-extra/includes/classes/parts/customize-elements.php
- > /wp-content/plugins/shop-extra/view/admin/parts/index.php
- > /wp-content/plugins/shop-extra/includes/classes/Floating.php
- > /wp-content/plugins/shop-extra/includes/functions/loops.php
- > /wp-content/plugins/shop-extra/includes/classes/parts/checkout.php
- > /wp-content/plugins/shop-extra/includes/functions/cart.php
- > /wp-content/plugins/shop-extra/includes/functions/checkout.php
- 22× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/shop-extra/view/admin/parts/partials/products/styling.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/shop-extra/view/admin/parts/order-button.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/shop-extra/view/admin/parts/floating.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/shop-extra/view/admin/parts/partials/utilities/extras.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/shop-extra/view/admin/parts/translations.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/shop-extra/view/admin/parts/partials/products/single-product-extra.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/shop-extra/view/admin/parts/partials/translations/checkout.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/shop-extra/view/admin/parts/partials/products/loops-extra.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/shop-extra/view/admin/parts/partials/utilities/datepicker.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/shop-extra/view/admin/parts/partials/products/cart-extra.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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #5 in shop-extra/assets to your readme.txt
shop-extra/plugin.php 85% from 13 tests
The main file in "ShopExtra — WooCommerce Extras" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("shop-extra.php" instead of "plugin.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 220 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected6,150 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 46 | 1,474 | 379 | 4,778 |
CSS | 2 | 214 | 12 | 1,099 |
JavaScript | 8 | 15 | 44 | 270 |
SVG | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 101.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 136 | |
▷ Static methods | 9 | 6.62% |
▷ Public methods | 121 | 88.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 11.03% |
Functions | 28 | |
▷ Named functions | 24 | 85.71% |
▷ Anonymous functions | 4 | 14.29% |
Constants | 18 | |
▷ Global constants | 14 | 77.78% |
▷ Class constants | 4 | 22.22% |
▷ Public constants | 4 | 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
No PNG files were detected