Benchmarks
Plugin footprint 83% 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 gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.58ms] Passed 4 tests
A check of server-side resources used by Quick Maintenance Mode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 44.08 ▼1.52 |
Dashboard /wp-admin | 3.36 ▲0.01 | 45.95 ▼21.72 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 47.30 ▲2.29 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 90.47 ▼1.38 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.52 ▲5.30 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Quick Maintenance Mode
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.31 ▼1.08 | 1.81 ▼0.17 | 42.05 ▼1.38 |
Dashboard /wp-admin | 2,206 ▲15 | 4.84 ▼0.03 | 109.65 ▼1.05 | 41.30 ▼1.89 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.17 ▲0.18 | 38.76 ▼0.46 | 35.08 ▼1.54 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.46 ▲5.75 | 650.19 ▲35.09 | 62.72 ▲12.51 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.24 ▲0.04 | 108.85 ▲10.01 | 45.08 ▲2.95 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function MaintenancePage\\Front\\add_action() in wp-content/plugins/quick-maintenance-mode-page/src/Front/Front.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/quick-maintenance-mode-page/views/pages/maintenance.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: maintenance mode
quick-maintenance-mode-page/bootstrap.php 92% from 13 tests
Analyzing the main PHP file in "Quick Maintenance Mode" version 0.0.1
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("quick-maintenance-mode-page.php" instead of "bootstrap.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
Good job! No executable or dangerous file extensions detected475 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 96 | 162 | 458 |
JSON | 2 | 0 | 0 | 17 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 11.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 6 | 18.75% |
▷ Public methods | 28 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.50% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin