78% blueglass-maintenance

Code Review | BlueGlass Maintenance

WordPress plugin BlueGlass Maintenance scored78%from 54 tests.

About plugin

  • Plugin page: blueglass-mainten...
  • Plugin version: 1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Oct 22, 2020
  • Latest release: Jan 28, 2022
  • Number of updates: 15
  • Update frequency: every 30.9 days
  • Top authors: blueglassinteractive (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /900 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.00MB] [CPU: ▼8.78ms] Passed 4 tests

A check of server-side resources used by BlueGlass Maintenance
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.82 ▼1.39
Dashboard /wp-admin3.31 ▼0.0448.74 ▼16.11
Posts /wp-admin/edit.php3.38 ▲0.0249.18 ▼1.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.76 ▼16.50
Media Library /wp-admin/upload.php3.25 ▲0.0235.45 ▲1.12

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options
bgpo_main_pack
db_upgraded
bgpo_date_pack
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for BlueGlass Maintenance
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲12914.75 ▲0.462.11 ▲0.3629.23 ▼12.89
Dashboard /wp-admin2,266 ▲895.58 ▼0.0987.09 ▼8.7494.57 ▲55.06
Posts /wp-admin/edit.php2,100 ▲31.97 ▼0.0736.31 ▼0.2930.79 ▼4.56
Add New Post /wp-admin/post-new.php1,528 ▼023.06 ▲0.12684.95 ▲63.8164.52 ▲10.57
Media Library /wp-admin/upload.php1,400 ▼04.28 ▲0.06102.70 ▲4.2044.13 ▲2.85

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 8 options
    • theysaidso_admin_options
    • can_compress_scripts
    • bgpo_date_pack
    • bgpo_main_pack
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/blueglass-maintenance/dist/parts/content.php
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: email in wp-content/plugins/blueglass-maintenance/dist/parts/settings.php on line 8
    • > PHP Notice
      Undefined variable: status in wp-content/plugins/blueglass-maintenance/dist/parts/content.php on line 36
    • > PHP Notice
      Undefined variable: upd in wp-content/plugins/blueglass-maintenance/dist/parts/content.php on line 3
    • > PHP Notice
      Undefined variable: status in wp-content/plugins/blueglass-maintenance/dist/parts/content.php on line 27
    • > PHP Notice
      Undefined variable: upd in wp-content/plugins/blueglass-maintenance/dist/parts/content.php on line 5
    • > PHP Notice
      Undefined variable: admin in wp-content/plugins/blueglass-maintenance/dist/parts/settings.php on line 8
    • > PHP Notice
      Undefined variable: url in wp-content/plugins/blueglass-maintenance/dist/parts/content.php on line 20

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 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
3 plugin tags: blueglass, maintenance, admin

blueglass-maintenance/blueglass.php 85% from 13 tests

The main PHP script in "BlueGlass Maintenance" version 1.3 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("blueglass-maintenance.php" instead of "blueglass.php")

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
Everything looks great! No dangerous files found in this plugin295 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS1113142
PHP44711137
SVG20112
JavaScript1004

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
dist/img/bg-logo.png7.56KB4.54KB▼ 39.98%
dist/img/bg-cov.png3.06KB2.85KB▼ 6.81%