Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼146.14ms] Passed 4 tests
A check of server-side resources used by Site Offline or Coming Soon
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 25.71 ▲1.82 |
Dashboard /wp-admin | 3.07 ▲0.01 | 31.59 ▼5.10 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 30.42 ▼0.78 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.00 | 70.84 ▼578.17 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 22.64 ▼0.52 |
Site Offline Mode /wp-admin/options-general.php?page=site-is-offline-plugin/main.php | 2.99 | 21.04 |
Server storage [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: no files
Database: no new tables, 1 new option
New WordPress options |
---|
sp_siteoffline_options |
Browser metrics Passed 4 tests
Site Offline or Coming Soon: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,671 ▲70 | 15.99 ▼0.03 | 8.81 ▲3.72 | 76.13 ▲4.45 |
Dashboard /wp-admin | 2,934 ▲35 | 6.10 ▼0.05 | 114.74 ▼17.05 | 171.11 ▼0.48 |
Posts /wp-admin/edit.php | 2,745 ▲2 | 3.24 ▼0.00 | 63.83 ▼1.32 | 135.41 ▼4.18 |
Add New Post /wp-admin/post-new.php | 3,926 ▲111 | 18.59 ▼0.69 | 421.00 ▼19.33 | 161.63 ▼5.10 |
Media Library /wp-admin/upload.php | 1,757 ▲8 | 5.53 ▲0.00 | 145.72 ▼6.37 | 186.63 ▼0.85 |
Site Offline Mode /wp-admin/options-general.php?page=site-is-offline-plugin/main.php | 1,118 | 2.38 | 57.18 | 114.45 |
Uninstaller [IO: ✅] [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 1 option in the database
- sp_siteoffline_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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/site-is-offline-plugin/site-offline-options.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/site-is-offline-plugin/main.php:92
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (Site offline Plugin settings)
- Tags: Please delete some tags, you are using 22 tag instead of maximum 10
site-is-offline-plugin/main.php 85% from 13 tests
Analyzing the main PHP file in "Site Offline or Coming Soon" version 1.6.6
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("site-is-offline-plugin.php" instead of "main.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 191 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin182 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 22 | 14 | 114 |
HTML | 1 | 5 | 0 | 68 |
PHP code Passed 2 tests
An overview 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 | 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 | 6 | |
▷ Named functions | 6 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin