Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.37ms] Passed 4 tests
Server-side resources used by Maintenance Work
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 45.76 ▲3.98 |
Dashboard /wp-admin | 3.32 ▼0.03 | 43.99 ▼12.86 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.49 ▼1.52 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.48 ▼8.64 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.31 ▲1.53 |
Maintenance Mode /wp-admin/options-general.php?page=maintenance-work-admin | 3.27 | 31.60 |
Server storage [IO: ▲1.66MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
_maintenance_work |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Maintenance Work
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.81 ▲0.06 | 1.86 ▼0.03 | 44.80 ▼3.06 |
Dashboard /wp-admin | 2,210 ▲18 | 5.02 ▲0.06 | 104.47 ▼0.05 | 35.50 ▼6.87 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.03 | 39.61 ▼1.10 | 34.63 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.52 ▲0.06 | 639.71 ▼35.16 | 54.05 ▲3.45 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.30 ▲0.09 | 94.67 ▼16.65 | 41.40 ▼5.21 |
Maintenance Mode /wp-admin/options-general.php?page=maintenance-work-admin | 878 | 1.67 | 26.20 | 55.62 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined index: pagenow in wp-content/plugins/maintenance-work/public/partials/maintenance-work-public-display.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/maintenance-work/public/partials/maintenance-work-public-display.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/maintenance-work/public/templates/page.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/maintenance-work/admin/partials/maintenance-work-admin-options.php:30
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (A general view of the plugin "options" page.) image not found
maintenance-work/maintenance-work.php Passed 13 tests
The main file in "Maintenance Work" v. 2.2.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
136 characters long description:
Add a maintenance page to your website that lets visitors know your page is down for maintenance and allowing to work on beside of this.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,229 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 118 | 53 | 738 |
PHP | 13 | 71 | 426 | 460 |
JavaScript | 4 | 2 | 27 | 31 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 5.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 75.55KB | 23.21KB | ▼ 69.27% |