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
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼0.19ms] Passed 4 tests
A check of server-side resources used by Continue Shopping Anywhere for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 41.57 ▲0.11 |
Dashboard /wp-admin | 3.38 ▲0.08 | 52.67 ▲1.96 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 54.24 ▼1.35 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 103.16 ▲4.31 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 34.07 ▼1.50 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 23 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
An overview of browser requirements for Continue Shopping Anywhere for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 13.64 ▼0.74 | 8.55 ▲6.62 | 42.82 ▼1.14 |
Dashboard /wp-admin | 2,210 ▲28 | 5.81 ▼0.08 | 101.45 ▼6.27 | 38.36 ▼1.42 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▲0.00 | 40.16 ▼2.97 | 34.24 ▼0.56 |
Add New Post /wp-admin/post-new.php | 1,527 ▲7 | 18.78 ▼4.25 | 630.69 ▲28.05 | 53.48 ▼2.83 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.19 ▼0.18 | 94.84 ▼3.99 | 44.25 ▼3.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/continue-shopping-anywhere-for-woocommerce/admin/partials/continue-shopping-anywhere-admin-display.php
- > /wp-content/plugins/continue-shopping-anywhere-for-woocommerce/public/partials/continue-shopping-anywhere-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/continue-shopping-anywhere-for-woocommerce/admin/partials/continue-shopping-anywhere-admin-display-settings.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% 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
5 plugin tags: continue shopping, ecommerce, woocommerce, notice, shopping
continue-shopping-anywhere-for-woocommerce/continue-shopping-anywhere.php 85% from 13 tests
The main PHP script in "Continue Shopping Anywhere for WooCommerce" version 1.3.0 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("continue-shopping-anywhere-for-woocommerce.php" instead of "continue-shopping-anywhere.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected562 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 173 | 628 | 556 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 5.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 30 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.29% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin