Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼4.31ms] Passed 4 tests
A check of server-side resources used by Kul Maintenance
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 37.03 ▼4.32 |
Dashboard /wp-admin | 3.48 ▲0.18 | 48.95 ▼4.63 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 54.49 ▲2.89 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 93.97 ▼11.17 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 38.61 ▲3.77 |
Server storage [IO: ▲3.74MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 8 new options
New WordPress options |
---|
kul_maintenance_slider_status |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
kul_maintenance_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Kul Maintenance
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.23 ▼0.05 | 1.81 ▲0.07 | 43.19 ▼1.37 |
Dashboard /wp-admin | 2,210 ▲33 | 5.51 ▼0.10 | 85.79 ▼2.99 | 65.93 ▲25.65 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.01 ▲0.02 | 42.45 ▲4.22 | 38.93 ▲1.81 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 23.02 ▼0.05 | 657.42 ▼36.97 | 60.96 ▼6.15 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.21 ▼0.02 | 102.25 ▲7.32 | 68.94 ▲25.65 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- kul_maintenance_slider_status
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- kul_maintenance_options
- can_compress_scripts
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)
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
Please take a closer look at the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/kul-maintenance/view/maintenance.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kul-maintenance/install.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kul-maintenance/view/functions.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kul-maintenance/require/functions.php:321
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kul-maintenance/require/admin.php:3
- > 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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: administration, vvisual editor, maintenance mode, coming soon, maintenance page...
kul-maintenance/kul-maintenance.php Passed 13 tests
The main file in "Kul Maintenance" v. 1.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
93 characters long description:
Used for Maintenance mode with slider and contact form while updating or used as coming soon.
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
There were no executable files found in this plugin14,356 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 2,152 | 41 | 8,977 |
JavaScript | 12 | 1,017 | 1,019 | 2,860 |
PHP | 7 | 220 | 38 | 1,293 |
SVG | 1 | 0 | 0 | 1,226 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 47 | |
▷ Named functions | 47 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
view/images/body_overlay_bg.png | 0.91KB | 0.09KB | ▼ 89.60% |
images/kul-icon.png | 0.90KB | 0.85KB | ▼ 5.63% |
view/images/logo.png | 5.76KB | 1.48KB | ▼ 74.39% |
images/kul-logo.png | 15.32KB | 6.30KB | ▼ 58.88% |