Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▲1.51ms] Passed 4 tests
A check of server-side resources used by Under Construction, Coming Soon & Maintenance Mode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.41 | 43.57 ▲2.73 |
Dashboard /wp-admin | 3.75 ▲0.44 | 63.04 ▲12.61 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 61.63 ▲9.51 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 89.40 ▼11.78 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 40.39 ▲5.58 |
Customizer /wp-admin/admin.php?page=under-construction-maintenance-mode | 3.56 | 36.99 |
Help /wp-admin/admin.php?page=ucmm-help | 3.60 | 41.20 |
Settings /wp-admin/admin.php?page=ucmm_settings | 3.58 | 38.65 |
Server storage [IO: ▲1.25MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
ucmm_wpbrigade_setting |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Under Construction, Coming Soon & Maintenance Mode
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲219 | 14.62 ▲0.27 | 1.87 ▲0.23 | 43.42 ▲3.98 |
Dashboard /wp-admin | 2,389 ▲212 | 6.31 ▲0.80 | 118.99 ▲25.67 | 42.44 ▲3.22 |
Posts /wp-admin/edit.php | 2,314 ▲217 | 3.69 ▲1.75 | 53.67 ▲13.53 | 35.62 ▼1.82 |
Add New Post /wp-admin/post-new.php | 1,570 ▲35 | 23.42 ▼1.59 | 675.67 ▲33.09 | 40.02 ▼25.20 |
Media Library /wp-admin/upload.php | 1,457 ▲60 | 4.37 ▲0.15 | 86.47 ▼17.73 | 43.80 ▲0.27 |
Customizer /wp-admin/admin.php?page=under-construction-maintenance-mode | 8,867 | 22.11 | 625.69 | 117.99 |
Help /wp-admin/admin.php?page=ucmm-help | 1,025 | 3.23 | 40.42 | 65.40 |
Settings /wp-admin/admin.php?page=ucmm_settings | 1,184 | 3.62 | 50.29 | 32.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- ucmm_wpbrigade_setting
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/under-construction-maintenance-mode/under-construction-maintenance-mode.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/under-construction-maintenance-mode/lib/wpb-sdk/views/wpb-sdk-deactivate-form.php:109
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/under-construction-maintenance-mode/ucmm-customize.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/under-construction-maintenance-mode/classes/plugin-meta.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/under-construction-maintenance-mode/includes/deactivate_modal.php:88
- > PHP Notice
Undefined variable: product_slug in wp-content/plugins/under-construction-maintenance-mode/lib/wpb-sdk/views/wpb-sdk-deactivate-form.php on line 103
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=under-construction-maintenance-mode
- > Network (severe)
ucmm-customize.php?watch=ucmm-customizer&customize_changeset_uuid=647e250e-2d5e-499e-a993-1f511b956a55&customize_theme=twentytwentyone&customize_messenger_channel=preview-0 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=under-construction-maintenance-mode
- > Security (warning) in unknown
/ucmm-customize.php?watch=ucmm-customizer&customize_changeset_uuid=647e250e-2d5e-499e-a993-1f511b956a55&customize_theme=twentytwentyone&customize_messenger_channel=preview-0 - An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Donate link: Invalid URI ("Author URI: https://wpbrigade.com/?utm_source=ucmm-org&utm_medium=donate-url-link")
- Screenshots: These screenshots lack descriptions #2, #3 in under-construction-maintenance-mode/assets to your readme.txt
under-construction-maintenance-mode/under-construction-maintenance-mode.php 77% from 13 tests
The main PHP script in "Under Construction, Coming Soon & Maintenance Mode" version 1.5.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "4.0")
- Description: Please don't use more than 140 characters for the plugin description (currently 173 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin6,006 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 581 | 789 | 2,539 |
CSS | 5 | 946 | 19 | 2,067 |
SVG | 1 | 0 | 4 | 1,007 |
JavaScript | 2 | 46 | 83 | 392 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 28.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 10 | 10.64% |
▷ Public methods | 87 | 92.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 7.45% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 PNG files occupy 0.21MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/coming-soon.png | 71.89KB | 25.28KB | ▼ 64.83% |
img/review-icon.png | 141.16KB | 53.59KB | ▼ 62.04% |