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
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼142.18ms] Passed 4 tests
This is a short check of server-side resources used by WordPress Easy Maintenance
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 37.08 ▲10.81 |
Dashboard /wp-admin | 3.08 ▲0.02 | 48.16 ▼4.82 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 46.14 ▼2.39 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 98.27 ▼564.53 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 36.29 ▲3.04 |
Easy Maintenance /wp-admin/options-general.php?page=easy_maintenance_menu | 3.02 | 29.07 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 4 new options
New WordPress options |
---|
wordpress_easy_maintenance_h1_text |
wordpress_easy_maintenance_active |
wordpress_easy_maintenance_page_title |
wordpress_easy_maintenance_h2_text |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress Easy Maintenance
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,797 ▲225 | 16.39 ▲0.81 | 15.31 ▲5.50 | 48.00 ▼0.20 |
Dashboard /wp-admin | 2,979 ▲51 | 6.10 ▲0.12 | 151.22 ▼12.41 | 121.20 ▼2.99 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.72 ▲0.00 | 74.67 ▲0.29 | 96.50 ▲6.55 |
Add New Post /wp-admin/post-new.php | 1,689 ▼1,998 | 17.00 ▲1.90 | 373.38 ▼124.16 | 117.66 ▲5.54 |
Media Library /wp-admin/upload.php | 1,816 ▲9 | 5.04 ▲0.00 | 157.07 ▼8.90 | 130.35 ▲7.78 |
Easy Maintenance /wp-admin/options-general.php?page=easy_maintenance_menu | 1,243 | 2.09 | 53.34 | 119.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 4 options in the database
- wordpress_easy_maintenance_h2_text
- wordpress_easy_maintenance_active
- wordpress_easy_maintenance_h1_text
- wordpress_easy_maintenance_page_title
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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 fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/easy-minimal-maintenance-or-coming-soon/public/partials/wordpress-easy-maintenance-public-display.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/easy-minimal-maintenance-or-coming-soon/admin/partials/wordpress-easy-maintenance-admin-display.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: minimal, free, easy, coming soon, basic...
easy-minimal-maintenance-or-coming-soon/wordpress-easy-maintenance.php 85% from 13 tests
This is the main PHP file of "WordPress Easy Maintenance" version 2.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("easy-minimal-maintenance-or-coming-soon.php" instead of "wordpress-easy-maintenance.php")
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
Everything looks great! No dangerous files found in this plugin371 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 131 | 495 | 284 |
CSS | 2 | 14 | 6 | 65 |
Markdown | 1 | 3 | 0 | 16 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 31 | |
▷ Static methods | 3 | 9.68% |
▷ Public methods | 23 | 74.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 25.81% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.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 files were detected