Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼2.96ms] Passed 4 tests
Server-side resources used by Maintenance Notice
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 39.46 ▼2.49 |
Dashboard /wp-admin | 3.45 ▲0.15 | 46.32 ▼1.41 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 47.57 ▼1.46 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 90.54 ▼6.47 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.02 ▲2.18 |
Background Settings /wp-admin/admin.php?page=maintenance-notice-background-settings | 3.42 | 34.72 |
Countdown Settings /wp-admin/admin.php?page=maintenance-notice-countdown-settings | 3.41 | 39.01 |
Typography Settings /wp-admin/admin.php?page=maintenance-notice-typography-settings | 3.67 | 39.47 |
Dashboard /wp-admin/admin.php?page=maintenance-notice | 3.38 | 36.54 |
Additional Settings /wp-admin/admin.php?page=maintenance-notice-additional-settings | 3.42 | 37.83 |
Content Settings /wp-admin/admin.php?page=maintenance-notice-content-settings | 3.41 | 38.20 |
Server storage [IO: ▲3.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 84 new files
Database: no new tables, 8 new options
New WordPress options |
---|
maintenance_notice_activated_time |
theysaidso_admin_options |
widget_recent-comments |
maintenance_notice_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Maintenance Notice
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲104 | 13.36 ▼1.31 | 1.72 ▼0.01 | 44.09 ▼1.90 |
Dashboard /wp-admin | 2,245 ▲57 | 5.89 ▲0.86 | 109.11 ▼0.84 | 45.92 ▲1.35 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.04 ▲0.05 | 41.39 ▲0.56 | 36.61 ▲0.91 |
Add New Post /wp-admin/post-new.php | 1,564 ▲45 | 23.40 ▲0.25 | 583.33 ▼20.53 | 53.76 ▼5.79 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.20 ▼0.07 | 95.17 ▼0.78 | 42.30 ▼2.08 |
Background Settings /wp-admin/admin.php?page=maintenance-notice-background-settings | 1,301 | 3.82 | 60.56 | 77.49 |
Countdown Settings /wp-admin/admin.php?page=maintenance-notice-countdown-settings | 1,593 | 6.64 | 123.58 | 85.92 |
Typography Settings /wp-admin/admin.php?page=maintenance-notice-typography-settings | 3,087 | 4.96 | 95.83 | 63.22 |
Dashboard /wp-admin/admin.php?page=maintenance-notice | 1,204 | 3.27 | 41.99 | 80.75 |
Additional Settings /wp-admin/admin.php?page=maintenance-notice-additional-settings | 1,337 | 3.60 | 55.27 | 73.48 |
Content Settings /wp-admin/admin.php?page=maintenance-notice-content-settings | 1,562 | 6.77 | 109.39 | 82.50 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- maintenance_notice_activated_time
- can_compress_scripts
- maintenance_notice_options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/maintenance-notice/admin/partials/content-help.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/maintenance-notice/admin/class-maintenance-notice-admin.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/maintenance-notice/admin/partials/countdown-settings.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/maintenance-notice/admin/partials/content-dashboard.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/maintenance-notice/admin/partials/typography-settings.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/maintenance-notice/includes/layouts/style-one.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/maintenance-notice/admin/partials/content-review.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maintenance-notice/includes/dynamic-styles.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maintenance-notice/includes/hooks/section-hooks.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/maintenance-notice/includes/index.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 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
7 plugin tags: unavailable, coming soon, maintenance mode, under construction, administration...
maintenance-notice/maintenance-notice.php 92% from 13 tests
"Maintenance Notice" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 219 characters long)
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
There were no executable files found in this plugin19,373 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 1 | 12 | 8,933 |
JavaScript | 7 | 1,454 | 963 | 4,397 |
CSS | 9 | 1,665 | 43 | 4,083 |
PHP | 17 | 230 | 517 | 1,959 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 18.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 4.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 3 | 10.34% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/images/wpallresources-img.png | 20.16KB | 7.29KB | ▼ 63.82% |
admin/assets/images/background-overlay-four.png | 4.06KB | 2.74KB | ▼ 32.66% |
admin/assets/images/background-overlay-one.png | 0.16KB | 0.08KB | ▼ 45.63% |
admin/assets/images/default.png | 0.99KB | 0.10KB | ▼ 90.02% |
includes/assets/library/jquery.mb.YTPlayer/images/raster@2x.png | 2.66KB | 0.10KB | ▼ 96.07% |