Benchmarks
Plugin footprint 65% 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.05MB] [CPU: ▼4.84ms] Passed 4 tests
Analyzing server-side resources used by WP Maintenance page
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 42.34 ▲0.71 |
Dashboard /wp-admin | 3.35 ▲0.05 | 52.75 ▲0.11 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 51.34 ▼4.07 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 88.42 ▼16.09 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 41.13 ▲3.73 |
WP Maintenance Page /wp-admin/options-general.php?page=wp-maintenance-page | 3.61 | 41.24 |
Server storage [IO: ▲5.47MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 81 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_wpmp_subscribers |
New WordPress options |
---|
theysaidso_admin_options |
wpmp_version |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
wpmp_settings |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Maintenance page
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.43 ▲0.04 | 1.70 ▲0.03 | 45.08 ▲1.19 |
Dashboard /wp-admin | 2,201 ▲24 | 5.62 ▲0.03 | 95.33 ▲9.37 | 43.07 ▲3.34 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 2.03 ▲0.01 | 35.51 ▼4.23 | 35.18 ▼2.86 |
Add New Post /wp-admin/post-new.php | 1,548 ▼7 | 23.44 ▲5.05 | 624.27 ▼14.48 | 58.82 ▲6.35 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.38 ▲0.14 | 98.23 ▲1.18 | 46.25 ▲3.14 |
WP Maintenance Page /wp-admin/options-general.php?page=wp-maintenance-page | 3,464 | 7.61 | 194.05 | 48.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_wpmp_subscribers
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp-maintenance-page
- > Deprecated in wp-content/plugins/wp-maintenance-page/includes/functions/helpers.php+11
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=wp-maintenance-page
- > Warning in wp-content/plugins/wp-maintenance-page/views/settings.php+668
readfile(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- > GET request to /wp-admin/options-general.php?page=wp-maintenance-page
- > Warning in wp-content/plugins/wp-maintenance-page/views/settings.php+668
readfile(https://xn--0vq403amku.net/plug/WPplugin.php): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
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× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-maintenance-page/views/sidebar.php
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/wp-maintenance-page/views/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-maintenance-page/views/maintenance.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-maintenance-page/views/promo-strictthemes.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-maintenance-page/views/loginform.php:1
- > PHP Notice
Undefined variable: title in wp-content/plugins/wp-maintenance-page/views/maintenance.php on line 4
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-maintenance-page/views/notice.php on line 2
- > PHP Notice
Undefined variable: notices in wp-content/plugins/wp-maintenance-page/views/notice.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-maintenance-page/views/google-analytics.php:7
- > PHP Warning
Use of undefined constant WPMP_IMAGES_URL - assumed 'WPMP_IMAGES_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-maintenance-page/views/contact.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-maintenance-page/views/contact.php:34
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=wp-maintenance-page
- > Network (severe)
wp-content/plugins/wp-maintenance-page/assets/js/chosen.jquery.min.js?ver=2.1.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=wp-maintenance-page
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).chosen is not a function" "TypeError: $(...).chosen is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-maintenance-page/assets/js/scripts-admin.min.js?ver=2.1.1:1:645)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=wp-maintenance-page
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28721 Uncaught TypeError: $(...).chosen is not a function
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
1 plugin tags: maintenance
wp-maintenance-page/wp-maintenance-page.php Passed 13 tests
The main PHP script in "WP Maintenance page" version 1.2.18 is automatically included on every request by WordPress
109 characters long description:
You can easily place your page into maintenance mode. You can customize and create your own maintenance page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin7,393 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 15 | 469 | 918 | 4,149 |
PHP | 16 | 324 | 898 | 1,702 |
CSS | 8 | 55 | 58 | 1,013 |
PO File | 2 | 235 | 254 | 529 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 37.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 133.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 15 | 28.85% |
▷ Public methods | 49 | 94.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.77% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 12 | 92.31% |
▷ Class constants | 1 | 7.69% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/images/.R2D2-C3PO-A70B09DA-D3A0-4445-8E24-77CE460FB851icn_sprite.png | 0.00KB | 0.00KB | 0.00% |
assets/images/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
assets/images/icon-48.png | 3.72KB | 1.83KB | ▼ 50.76% |