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.23MB] [CPU: ▼1.41ms] Passed 4 tests
Analyzing server-side resources used by WPC - Checkout Editor for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 46.21 ▲7.50 |
Dashboard /wp-admin | 3.57 ▲0.27 | 55.15 ▲3.75 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 50.65 ▼5.45 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 88.74 ▼11.42 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 45.19 ▲9.35 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 128 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPC - Checkout Editor for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 14.47 ▲0.17 | 1.75 ▼0.05 | 43.92 ▲0.04 |
Dashboard /wp-admin | 2,212 ▲24 | 5.83 ▼0.04 | 105.25 ▼5.09 | 45.17 ▲4.38 |
Posts /wp-admin/edit.php | 2,104 ▲12 | 2.02 ▲0.05 | 34.48 ▼5.63 | 38.78 ▲1.60 |
Add New Post /wp-admin/post-new.php | 1,551 ▲32 | 23.12 ▼0.03 | 678.28 ▼4.14 | 57.25 ▲3.01 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.22 ▼0.05 | 110.19 ▲4.37 | 49.94 ▲3.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 28× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-premium-checkout/app/hooks.php:6
- > PHP Warning
Use of undefined constant WPC_VERSION - assumed 'WPC_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/wc-premium-checkout/app/setup/view/partials/html-admin-partial-intro.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'WPC\\Abstract_Addon' not found in wp-content/plugins/wc-premium-checkout/app/inc/Addons/wpc-onepage-checkout/class-wpc-theme-onepage-checkout.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/wc-premium-checkout/app/inc/Controls/wpc-typography/class-wpc-control-typography.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPC\\Abstract_Addon' not found in wp-content/plugins/wc-premium-checkout/app/inc/Addons/wpc-typography-settings/class-wpc-extension-typography-settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wc-premium-checkout/app/setup/view/template/html-wpc-default-template.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/wc-premium-checkout/app/inc/Controls/wpc-heading/class-wpc-control-heading.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wc-premium-checkout/app/setup/view/callback/html-admin-callback-page.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wc-premium-checkout/app/setup/view/html-admin-notice.php:1
- > PHP Fatal error
Uncaught Error: Class 'WPC\\Abstract_Addon' not found in wp-content/plugins/wc-premium-checkout/app/inc/Addons/wpc-theme-selector/class-wpc-extension-theme-selector.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #2, #3 in wc-premium-checkout/assets to your readme.txt
- Tags: You are using too many tags: 11 tag instead of maximum 10
wc-premium-checkout/bootstrap.php 69% from 13 tests
"WPC - Checkout Editor for WooCommerce" version 2.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Description: Please keep the plugin description shorter than 140 characters (currently 169 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("wc-premium-checkout.php" instead of "bootstrap.php")
- Requires at least: The required version number must match the one declared in readme.txt ("5.5.1" instead of "4.2.1")
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
Success! There were no dangerous files found in this plugin16,027 lines of code in 113 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 22 | 1,617 | 416 | 6,277 |
PHP | 70 | 1,196 | 819 | 5,235 |
CSS | 16 | 415 | 227 | 4,158 |
PO File | 1 | 131 | 149 | 353 |
SVG | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 13.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 21 | |
▷ Abstract classes | 1 | 4.76% |
▷ Concrete classes | 20 | 95.24% |
▷ Final classes | 4 | 20.00% |
Methods | 148 | |
▷ Static methods | 7 | 4.73% |
▷ Public methods | 146 | 98.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.35% |
Functions | 96 | |
▷ Named functions | 80 | 83.33% |
▷ Anonymous functions | 16 | 16.67% |
Constants | 11 | |
▷ Global constants | 11 | 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
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
app/inc/Addons/wpc-onepage-checkout/assets/img/screenshot.png | 33.67KB | 12.61KB | ▼ 62.53% |
app/assets/img/logo.png | 4.80KB | 2.55KB | ▼ 46.85% |