90% k-brb-maintenance-or-coming-soon

Code Review | BRB - Maintenance or Coming Soon

WordPress plugin BRB - Maintenance or Coming Soon scored90%from 54 tests.

About plugin

  • Plugin page: k-brb-maintenance...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.9.3
  • WordPress version: 6.3.1
  • First release: Oct 19, 2017
  • Latest release: Apr 24, 2022
  • Number of updates: 9
  • Update frequency: every 183.1 days
  • Top authors: fabiolobo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,506 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.70ms] Passed 4 tests

This is a short check of server-side resources used by BRB - Maintenance or Coming Soon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.28 ▲4.24
Dashboard /wp-admin3.42 ▲0.0847.48 ▼9.34
Posts /wp-admin/edit.php3.53 ▲0.1844.57 ▼1.49
Add New Post /wp-admin/post-new.php6.00 ▲0.1292.54 ▲0.51
Media Library /wp-admin/upload.php3.34 ▲0.1234.42 ▲3.54
Maintenance / Coming Soon /wp-admin/options-general.php?page=k-brb3.3844.48

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
k-brb-field-icons-style
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for BRB - Maintenance or Coming Soon
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.25 ▼1.514.26 ▲2.6741.61 ▲0.43
Dashboard /wp-admin2,210 ▲185.88 ▲0.93108.65 ▼5.8541.88 ▲0.45
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0137.72 ▼0.0533.28 ▲0.78
Add New Post /wp-admin/post-new.php1,520 ▼1317.76 ▼5.62590.23 ▼54.6152.95 ▼1.61
Media Library /wp-admin/upload.php1,392 ▲44.19 ▲0.0094.56 ▲1.9040.59 ▼1.50
Maintenance / Coming Soon /wp-admin/options-general.php?page=k-brb2,4358.08170.16121.46

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: maintenance, coming soon, private, under construction

k-brb-maintenance-or-coming-soon/k-brb-maintenance-or-coming-soon.php 92% from 13 tests

The entry point to "BRB - Maintenance or Coming Soon" version 1.0.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected678 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP311317336
CSS3280142
PO File15363136
JavaScript24032
SVG150132

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity1.48
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected