84% site-offline

Code Review | Site Offline Or Coming Soon Or Maintenance Mode

WordPress plugin Site Offline Or Coming Soon Or Maintenance Mode scored84%from 54 tests.

About plugin

  • Plugin page: site-offline
  • Plugin version: 1.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 30, 2016
  • Latest release: May 13, 2023
  • Number of updates: 54
  • Update frequency: every 43.5 days
  • Top authors: chandrashekharsahu (100%)

Code review

54 tests

User reviews

372 reviews

Install metrics

40,000+ active /773,380 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.91ms] Passed 4 tests

Analyzing server-side resources used by Site Offline Or Coming Soon Or Maintenance Mode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.69 ▲2.87
Dashboard /wp-admin3.35 ▲0.0045.12 ▼12.03
Posts /wp-admin/edit.php3.40 ▲0.0443.76 ▼0.29
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.43 ▼16.46
Media Library /wp-admin/upload.php3.27 ▲0.0435.05 ▲1.14

Server storage [IO: ▲1.54MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 75 new files
Database: no new tables, 13 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
sahu_so_contact
sahu_siteoff_line_review
sahu_so_social
sahu_so_countdown
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
...

Browser metrics Passed 4 tests

Checking browser requirements for Site Offline Or Coming Soon Or Maintenance Mode
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲4514.75 ▲0.351.76 ▼0.2246.22 ▲9.26
Dashboard /wp-admin2,222 ▲434.87 ▼0.99111.44 ▲13.3142.68 ▼4.42
Posts /wp-admin/edit.php2,105 ▲162.00 ▼0.0333.80 ▼2.1535.42 ▼0.20
Add New Post /wp-admin/post-new.php1,546 ▲2723.42 ▲0.12663.96 ▼24.5147.20 ▼6.87
Media Library /wp-admin/upload.php1,401 ▲134.22 ▼0.0894.12 ▼4.5544.99 ▼1.80

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 13 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • sahu_so_countdown
    • sahu_so_seo
    • sahu_so_dashboard
    • sahu_siteoff_line_review
    • sahu_so_social
    • sahu_so_contact
    • ...

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 | 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/site-offline/output/index.php

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 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: You are using too many tags: 38 tag instead of maximum 10
  • Screenshots: Please add descriptions for these screenshots #11, #12 in site-offline/assets to your readme.txt
The official readme.txt is a good inspiration

site-offline/site-offline.php Passed 13 tests

The entry point to "Site Offline Or Coming Soon Or Maintenance Mode" version 1.5.6 is a PHP file that has certain tags in its header comment area
114 characters long description:
Site Offline plugin manage your WordPress website when it's under construction or maintenance mode or coming soon.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected5,307 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
CSS13329863,071
PHP14367431,681
JavaScript1560130555

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
18 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/button_check.png4.66KB1.57KB▼ 66.23%
assets/img/logo.png9.08KB3.44KB▼ 62.10%
assets/css/images/ui-icons_d8e7f3_256x240.png4.44KB4.17KB▼ 6.02%
assets/css/images/ui-bg_glass_95_fef1ec_1x400.png0.32KB0.15KB▼ 54.82%
assets/css/images/ui-icons_217bc0_256x240.png4.44KB4.17KB▼ 6.02%