Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.92ms] Passed 4 tests
A check of server-side resources used by Simpler Checkout
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 40.37 ▲0.86 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.77 ▼1.06 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.59 ▼2.47 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.74 ▼18.19 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.03 ▼1.95 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Simpler Checkout: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲31 | 14.35 ▲0.00 | 1.62 ▼0.16 | 39.51 ▲0.45 |
Dashboard /wp-admin | 2,198 ▲17 | 5.51 ▼0.21 | 83.73 ▼16.81 | 40.86 ▲1.65 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▲0.01 | 33.23 ▼3.03 | 32.63 ▼1.36 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.18 ▲0.02 | 663.48 ▼17.47 | 56.60 ▼2.14 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.17 ▲0.05 | 96.34 ▼17.41 | 40.84 ▼7.27 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- 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 no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/simpler-checkout/includes/Admin/assets/views/settings/_shortcodes.blade.php
- > /wp-content/plugins/simpler-checkout/includes/Admin/assets/views/settings/configuration/_settings.blade.php
- > /wp-content/plugins/simpler-checkout/includes/Admin/assets/views/settings/offers/_form.blade.php
- > /wp-content/plugins/simpler-checkout/includes/Admin/assets/views/_home.blade.php
- > /wp-content/plugins/simpler-checkout/includes/Admin/assets/views/settings/_button.blade.php
- > /wp-content/plugins/simpler-checkout/includes/Admin/assets/views/settings/configuration/_status.blade.php
- 31× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simpler-checkout/includes/button.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simpler-checkout/includes/hooks.php:3
- > PHP Fatal error
Uncaught Error: Class 'Simpler\\Http\\Controllers\\Controller' not found in wp-content/plugins/simpler-checkout/includes/Http/Controllers/QuotationController.php:13
- > PHP Fatal error
Uncaught Error: Class 'Simpler\\Exceptions\\BaseException' not found in wp-content/plugins/simpler-checkout/includes/Exceptions/InvalidProductException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Simpler\\Http\\Controllers\\Controller' not found in wp-content/plugins/simpler-checkout/includes/Http/Controllers/OrderQuoteController.php:10
- > PHP Fatal error
Uncaught Error: Class 'Simpler\\Http\\Controllers\\Controller' not found in wp-content/plugins/simpler-checkout/includes/Http/Controllers/OrderController.php:12
- > PHP Fatal error
Uncaught Error: Class 'Simpler\\Http\\Controllers\\Controller' not found in wp-content/plugins/simpler-checkout/includes/Http/Controllers/OrderCreateController.php:16
- > PHP Fatal error
Uncaught Error: Class 'Simpler\\Exceptions\\BaseException' not found in wp-content/plugins/simpler-checkout/includes/Exceptions/InapplicableCouponException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Simpler\\Exceptions\\BaseException' not found in wp-content/plugins/simpler-checkout/includes/Exceptions/IndividuallySoldProductException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Simpler\\Exceptions\\BaseException' not found in wp-content/plugins/simpler-checkout/includes/Exceptions/OutOfStockProductException.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: simpler checkout, login, authentication, 1click checkout, woocommerce...
simpler-checkout/simpler.php 85% from 13 tests
"Simpler Checkout" version 0.7.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 157 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simpler-checkout.php" instead of "simpler.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected7,393 lines of code in 86 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 77 | 1,178 | 2,938 | 6,603 |
Blade | 6 | 11 | 0 | 296 |
CSS | 1 | 37 | 3 | 256 |
JavaScript | 1 | 47 | 0 | 233 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 10.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 316.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 58 | |
▷ Abstract classes | 2 | 3.45% |
▷ Concrete classes | 56 | 96.55% |
▷ Final classes | 13 | 23.21% |
Methods | 507 | |
▷ Static methods | 45 | 8.88% |
▷ Public methods | 333 | 65.68% |
▷ Protected methods | 118 | 23.27% |
▷ Private methods | 56 | 11.05% |
Functions | 102 | |
▷ Named functions | 73 | 71.57% |
▷ Anonymous functions | 29 | 28.43% |
Constants | 32 | |
▷ Global constants | 4 | 12.50% |
▷ Class constants | 28 | 87.50% |
▷ Public constants | 28 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected