Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.88ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Continue Shopping
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 41.07 ▲6.82 |
Dashboard /wp-admin | 3.38 ▲0.08 | 41.01 ▼6.75 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 46.20 ▼2.30 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 88.86 ▲1.93 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 34.74 ▼0.41 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Continue Shopping
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.17 | 1.88 ▲0.21 | 46.67 ▲3.48 |
Dashboard /wp-admin | 2,192 ▲18 | 5.64 ▼0.03 | 89.26 ▲3.20 | 40.92 ▲1.71 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.03 | 39.10 ▲2.85 | 35.73 ▼1.89 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 18.55 ▼4.58 | 622.59 ▼82.36 | 57.04 ▲0.78 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.19 ▼0.01 | 98.93 ▼1.41 | 39.56 ▼3.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/continue-shopping-for-woocommerce/classes/class-continue-shopping.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function HPY\\CS\\Settings\\add_filter() in wp-content/plugins/continue-shopping-for-woocommerce/classes/class-admin-options.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/continue-shopping-for-woocommerce/woocommerce-continue-shopping.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: woocommerce continue shopping, ecommerce, continue shopping, woocommerce
continue-shopping-for-woocommerce/woocommerce-continue-shopping.php 77% from 13 tests
The main file in "WooCommerce Continue Shopping" v. 1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Requires at least: Required version must match the one declared in readme.txt ("4.2" instead of "2.4")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("continue-shopping-for-woocommerce.php" instead of "woocommerce-continue-shopping.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected327 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 91 | 81 | 327 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 15 | 100.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin