Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.33ms] Passed 4 tests
A check of server-side resources used by Maintenance mode for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.85 ▲5.26 |
Dashboard /wp-admin | 3.40 ▲0.09 | 46.04 ▲1.03 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 44.65 ▲2.58 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 83.67 ▼15.67 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 34.21 ▼1.27 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
nf_maintenance_cfg |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Maintenance mode for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲42 | 14.25 ▼0.02 | 1.81 ▲0.07 | 42.20 ▲1.24 |
Dashboard /wp-admin | 2,206 ▲29 | 5.55 ▼0.10 | 93.54 ▼6.99 | 41.05 ▼5.74 |
Posts /wp-admin/edit.php | 2,115 ▲12 | 2.02 ▲0.05 | 34.64 ▼7.55 | 37.25 ▲5.58 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.12 ▼0.13 | 691.56 ▲2.19 | 50.09 ▲1.22 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.18 ▼0.03 | 99.29 ▲5.89 | 41.70 ▼0.44 |
Uninstaller [IO: ▲0.06MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following itemsZombie WordPress options detected upon uninstall: 7 options
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function check_admin_referer was called incorrectly. You should specify an action to be verified by using the first parameter. Please see Debugging in WordPress for more information. (This message was added in version 3.2.0.)
- This plugin has failed uninstalling correctly, leaving 25 files (0.06MB) in the plugin directory
- (new file) includes/index.php
- (new file) includes/class-nf-maintenance-loader.php
- (new file) admin/index.php
- (new file) includes/class-nf-maintenance.php
- (new file) includes/class-nf-maintenance-deactivator.php
- (new file) admin/js/nf-maintenance-admin.js
- (new file) includes/class-nf-maintenance-activator.php
- (new file) admin/class-nf-maintenance-admin.php
- (new file) includes/class-nf-maintenance-i18n.php
- (new file) admin/css/nf-maintenance-admin.css
- ...
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- nf_maintenance_cfg
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 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
10 plugin tags: woocommerce maintenance, under construction, coming soon, woocommerce, private...
maintenance-mode-for-woocommerce/maintenance-mode-for-woocommerce.php Passed 13 tests
The main file in "Maintenance mode for WooCommerce" v. 1.0.19 serves as a complement to information provided in readme.txt and as the entry point to the plugin
80 characters long description:
Put WooCommerce in maintenance mode, without affecting other parts of a website.
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
Good job! No executable or dangerous file extensions detected758 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 209 | 23 | 452 |
PO File | 3 | 60 | 63 | 247 |
CSS | 2 | 10 | 0 | 56 |
JavaScript | 1 | 2 | 27 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 6.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 32 | 86.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.51% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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
There are no PNG files in this plugin