Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.14MB] [CPU: ▼20.59ms] Passed 4 tests
Server-side resources used by Simple WP Maintenance
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.45 ▼0.02 | 29.09 ▼10.66 |
Dashboard /wp-admin | 3.25 ▼0.10 | 31.66 ▼30.18 |
Posts /wp-admin/edit.php | 3.31 ▼0.04 | 35.24 ▼11.56 |
Add New Post /wp-admin/post-new.php | 5.50 ▼0.39 | 73.93 ▼29.95 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 31.92 ▼1.97 |
Simple WP Maintenance /wp-admin/options-general.php?page=simple-wp-maintenance | 3.25 | 30.17 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple WP Maintenance
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.67 ▲0.30 | 1.79 ▲0.04 | 37.09 ▼7.09 |
Dashboard /wp-admin | 2,202 ▲24 | 5.59 ▲0.01 | 84.84 ▼24.96 | 43.83 ▼2.32 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.01 ▲0.02 | 40.42 ▲1.16 | 40.96 ▲0.62 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.38 ▼0.09 | 691.58 ▲68.99 | 53.27 ▼2.80 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.20 ▲0.03 | 98.20 ▼2.74 | 41.95 ▼0.75 |
Simple WP Maintenance /wp-admin/options-general.php?page=simple-wp-maintenance | 1,301 | 3.79 | 68.78 | 28.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simple-wp-maintenance
- > Notice in wp-content/plugins/simple-wp-maintenance/simple-wp-maintenance.php+158
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-wp-maintenance/simple-wp-maintenance.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: under construction, maintenance mode, maintenance, coming soon, website offline
simple-wp-maintenance/simple-wp-maintenance.php Passed 13 tests
The primary PHP file in "Simple WP Maintenance" version 1.1 is used by WordPress to initiate all plugin functionality
98 characters long description:
Sets the WordPress website to maintenance mode and displays a custom message and background image.
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
No dangerous file extensions were detected499 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 63 | 20 | 250 |
PO File | 4 | 66 | 68 | 212 |
JavaScript | 3 | 6 | 10 | 37 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There were not PNG files found in your plugin