Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.14ms] Passed 4 tests
Server-side resources used by Easy Maintenance
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.69 ▲4.00 |
Dashboard /wp-admin | 3.34 ▲0.04 | 43.07 ▼6.35 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.64 ▼2.30 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 84.46 ▼11.91 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 36.98 ▲4.86 |
Maintenance /wp-admin/options-general.php?page=maintenance | 3.24 | 31.57 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
easymaintenance_v115 |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Maintenance
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲83 | 13.88 ▼0.42 | 1.61 ▼0.44 | 40.59 ▲0.11 |
Dashboard /wp-admin | 2,228 ▲43 | 5.95 ▲0.08 | 103.53 ▼5.08 | 39.98 ▼2.80 |
Posts /wp-admin/edit.php | 2,126 ▲34 | 2.63 ▲0.59 | 45.23 ▲4.48 | 34.42 ▼1.76 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.82 ▲6.18 | 680.43 ▲34.52 | 56.60 ▼6.71 |
Media Library /wp-admin/upload.php | 1,416 ▲31 | 5.15 ▲0.90 | 105.06 ▲9.66 | 41.11 ▼1.27 |
Maintenance /wp-admin/options-general.php?page=maintenance | 922 | 2.29 | 35.25 | 24.83 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-maintenance/includes/admin-page.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-maintenance/includes/restrict-access.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-maintenance/easy-maintenance.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Overview of the plugin settings without optional settings), #2 (Overview of the plugin settings with optional settings and datepicker)
easy-maintenance/easy-maintenance.php Passed 13 tests
"Easy Maintenance" version 1.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
61 characters long description:
A small and lightweight plugin build for simple maintenances.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected19,661 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 3,940 | 3,198 | 19,282 |
PHP | 5 | 22 | 10 | 206 |
CSS | 1 | 1 | 1 | 173 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 9 | |
▷ Named functions | 9 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 31.92KB | 18.31KB | ▼ 42.64% |
screenshot-1.png | 12.36KB | 7.86KB | ▼ 36.45% |