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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.24MB] [CPU: ▼7.93ms] Passed 4 tests
A check of server-side resources used by YITH Maintenance Mode
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 36.39 ▼5.97 |
Dashboard /wp-admin | 3.56 ▲0.22 | 46.87 ▼14.47 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 51.15 ▲1.66 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.25 | 82.91 ▼12.93 |
Media Library /wp-admin/upload.php | 3.51 ▲0.27 | 36.57 ▲2.48 |
Maintenance Mode /wp-admin/themes.php?page=yith-maintenance-mode | 3.52 | 38.28 |
Server storage [IO: ▲2.94MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 94 new files
Database: no new tables, 50 new options
New WordPress options |
---|
yith_maintenance_socials_skype |
yith_maintenance_newsletter_submit_background |
yith_maintenance_newsletter_submit_background_hover |
yith_maintenance_newsletter_email_label |
yith_maintenance_socials_facebook |
yith_maintenance_mascotte |
can_compress_scripts |
yith_maintenance_newsletter_submit_label |
yith_maintenance_newsletter_email_name |
yith_maintenance_background_color |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for YITH Maintenance Mode
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲72 | 14.34 ▲0.09 | 2.04 ▲0.33 | 38.63 ▼5.18 |
Dashboard /wp-admin | 2,202 ▲22 | 5.64 ▼0.04 | 93.53 ▼1.05 | 39.05 ▼1.08 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.04 | 40.47 ▲0.67 | 36.15 ▼1.44 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.20 ▲0.32 | 634.49 ▲42.47 | 51.36 ▲4.54 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.17 ▼0.08 | 100.58 ▲3.92 | 40.95 ▲0.91 |
Maintenance Mode /wp-admin/themes.php?page=yith-maintenance-mode | 1,843 | 3.88 | 75.38 | 37.31 |
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 50 options in the database
- yith_maintenance_background_attachment
- yith_maintenance_socials_dribble
- yith_maintenance_socials_youtube
- yith_maintenance_newsletter_submit_font
- yith_maintenance_logo_tagline
- yith_maintenance_socials_tumblr
- yith_maintenance_enable_newsletter_form
- can_compress_scripts
- yith_maintenance_background_image
- yith_maintenance_roles
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 fix the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/yith-maintenance-mode/templates/maintenance-skin2.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/yith-maintenance-mode/templates/maintenance-skin3.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yith-maintenance-mode/yit-common/yit-functions.php:156
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/yith-maintenance-mode/templates/maintenance.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/yith-maintenance-mode/templates/maintenance-skin4.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: maintenance page, construction, maintenance, wordpress maintenance mode, yith
yith-maintenance-mode/init.php 92% from 13 tests
The main PHP script in "YITH Maintenance Mode" version 1.9.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("yith-maintenance-mode.php" instead of "init.php")
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 detected4,132 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 265 | 583 | 2,054 |
CSS | 5 | 229 | 23 | 980 |
JSON | 2 | 0 | 0 | 438 |
PO File | 1 | 146 | 149 | 356 |
JavaScript | 1 | 51 | 26 | 275 |
XML | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 88.89% |
▷ Protected methods | 3 | 11.11% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
60 compressed PNG files occupy 2.69MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/skin4/socials/facebook.png | 2.10KB | 2.09KB | 0.46% |
assets/images/skin1/socials/skype.png | 2.32KB | 2.32KB | 0.21% |
assets/images/skin4/separator2.png | 1.33KB | 0.68KB | ▼ 49.23% |
assets/images/socials/skype.png | 2.32KB | 2.32KB | 0.21% |
assets/images/skin1/socials/twitter.png | 2.14KB | 2.14KB | 0.14% |