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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.37MB] [CPU: ▼3.83ms] Passed 4 tests
A check of server-side resources used by Maintenance Mode & Coming Soon
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 39.17 ▼3.09 |
Dashboard /wp-admin | 3.68 ▲0.37 | 54.39 ▲5.97 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 51.63 ▼0.91 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 87.03 ▼14.68 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 39.71 ▲3.38 |
Maintenance Mode & Coming Soon /wp-admin/options-general.php?page=mmcs_options | 3.78 | 42.41 |
Server storage [IO: ▲9.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 481 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
as_mmcs |
Browser metrics Passed 4 tests
A check of browser resources used by Maintenance Mode & Coming Soon
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.29 ▼1.34 | 1.68 ▼0.30 | 42.60 ▼7.16 |
Dashboard /wp-admin | 2,210 ▲19 | 5.80 ▲0.90 | 97.22 ▼3.12 | 37.26 ▼9.63 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.02 ▼0.04 | 38.65 ▼2.42 | 34.82 ▼6.17 |
Add New Post /wp-admin/post-new.php | 1,537 ▲16 | 23.19 ▼0.01 | 649.17 ▼26.38 | 50.46 ▼9.37 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▼0.03 | 94.14 ▼17.97 | 43.22 ▼4.47 |
Maintenance Mode & Coming Soon /wp-admin/options-general.php?page=mmcs_options | 12,240 | 5.70 | 123.82 | 93.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/maintenance-mode-coming-soon/inc/admin/views/footer.php
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'AkshitSethi\\Plugins\\MaintenanceMode\\Config' not found in wp-content/plugins/maintenance-mode-coming-soon/inc/admin/views/header.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/maintenance-mode-coming-soon/inc/admin/views/settings-advanced.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/maintenance-mode-coming-soon/inc/views/blank.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/maintenance-mode-coming-soon/inc/views/html.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/maintenance-mode-coming-soon/inc/admin/views/settings-support.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/maintenance-mode-coming-soon/inc/admin/views/settings-social.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/maintenance-mode-coming-soon/inc/admin/views/settings-design.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/maintenance-mode-coming-soon/inc/admin/views/settings-about.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/maintenance-mode-coming-soon/inc/admin/views/settings-form.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function AkshitSethi\\Plugins\\MaintenanceMode\\plugin_dir_url() in wp-content/plugins/maintenance-mode-coming-soon/inc/class-config.php:772
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (15 tag instead of maximum 10)
- Screenshots: Please add images for these screenshots: #3 (See how perfectly it adapts to mobile), #4 (Mobile optimized admin panel of the plugin), #5 (Submit support ticket from the options panel itself)
maintenance-mode-coming-soon/maintenance-mode-coming-soon.php 85% from 13 tests
"Maintenance Mode & Coming Soon" version 1.5.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("i18n")
- Domain Path: Prefix the domain path with a forward slash character ("/i18n")
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 detected11,876 lines of code in 451 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 411 | 836 | 273 | 4,502 |
PHP | 30 | 661 | 909 | 3,306 |
SVG | 1 | 0 | 0 | 2,671 |
CSS | 3 | 30 | 84 | 1,124 |
Markdown | 2 | 80 | 0 | 162 |
JSON | 3 | 2 | 0 | 100 |
Bourne Shell | 1 | 4 | 0 | 11 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 26.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 117.00 |
Average method complexity | 4.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 96.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 9 | 10.59% |
▷ Public methods | 66 | 77.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 22.35% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/close.png | 0.43KB | 0.33KB | ▼ 24.43% |
assets/admin/images/logo.png | 4.21KB | 1.45KB | ▼ 65.55% |
assets/admin/images/lrg-icon.png | 16.22KB | 3.92KB | ▼ 75.81% |
assets/admin/images/twitter.png | 2.07KB | 0.63KB | ▼ 69.73% |
assets/admin/images/facebook.png | 1.82KB | 0.59KB | ▼ 67.51% |