Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼153.62ms] Passed 4 tests
This is a short check of server-side resources used by WP Quick Maintenance
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.00 ▲0.16 | 45.50 ▲2.98 |
Dashboard /wp-admin | 3.29 ▲0.23 | 60.23 ▲8.63 |
Posts /wp-admin/edit.php | 3.34 ▲0.23 | 64.07 ▲11.48 |
Add New Post /wp-admin/post-new.php | 5.58 ▲0.15 | 107.28 ▼633.48 |
Media Library /wp-admin/upload.php | 3.17 ▲0.17 | 44.38 ▲7.38 |
Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 68 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WP Quick Maintenance: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,699 ▲127 | 15.54 ▲0.12 | 11.78 ▼0.23 | 49.37 ▼4.61 |
Dashboard /wp-admin | 2,987 ▲61 | 5.89 ▼0.30 | 163.01 ▼2.62 | 110.18 ▼11.19 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.73 ▲0.00 | 81.29 ▲3.58 | 88.03 ▼11.62 |
Add New Post /wp-admin/post-new.php | 1,696 ▲13 | 18.30 ▼0.37 | 426.08 ▼78.05 | 116.52 ▼8.23 |
Media Library /wp-admin/upload.php | 1,827 ▲20 | 5.02 ▼0.01 | 173.93 ▲2.98 | 117.45 ▼1.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-quick-maintenance/wp-quick-maintenance.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-quick-maintenance/metabox/tests/bootstrap.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-quick-maintenance/maintenance.php:2
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/wp-quick-maintenance/metabox/tests/bootstrap.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-quick-maintenance/metabox/tests/test-cmb-core.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-quick-maintenance/metabox/example-functions.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-quick-maintenance/metabox/init.php:41
- > 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 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: There are too many tags (15 tag instead of maximum 10)
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Admin Setting), #2 (Frontend View of WP Quick Maintenance Plugin)
wp-quick-maintenance/wp-quick-maintenance.php Passed 13 tests
The entry point to "WP Quick Maintenance" version 0.1 is a PHP file that has certain tags in its header comment area
131 characters long description:
WP Quick Maintenance Plugin will help you easily enable maintenance mode on your site or add a coming soon page for a new website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected17,364 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 216 | 477 | 10,016 |
JavaScript | 8 | 560 | 544 | 3,425 |
PHP | 12 | 659 | 1,164 | 2,509 |
Sass | 1 | 65 | 0 | 574 |
SVG | 1 | 0 | 0 | 414 |
Markdown | 3 | 94 | 0 | 301 |
Bourne Shell | 1 | 15 | 4 | 59 |
JSON | 1 | 0 | 0 | 33 |
YAML | 1 | 5 | 0 | 18 |
XML | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 50.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.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 | 142 | |
▷ Static methods | 35 | 24.65% |
▷ Public methods | 140 | 98.59% |
▷ Protected methods | 2 | 1.41% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
17 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
metabox/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
assets/img/favicon.png | 3.13KB | 0.75KB | ▼ 76.13% |
metabox/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
metabox/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
metabox/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |