89% labinator-minimal-maintenance-mode

Code Review | Labinator Minimal Maintenance Mode

WordPress plugin Labinator Minimal Maintenance Mode scored89%from 54 tests.

About plugin

  • Plugin page: labinator-minimal...
  • Plugin version: 1.0.7
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.2
  • WordPress version: 6.3.1
  • First release: Sep 27, 2020
  • Latest release: Apr 3, 2023
  • Number of updates: 14
  • Update frequency: every 65.9 days
  • Top authors: Labinator (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /3,313 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.82ms] Passed 4 tests

An overview of server-side resources used by Labinator Minimal Maintenance Mode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.15 ▲1.29
Dashboard /wp-admin3.31 ▲0.0045.19 ▼3.50
Posts /wp-admin/edit.php3.36 ▲0.0046.86 ▼2.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.94 ▲4.42
Media Library /wp-admin/upload.php3.23 ▲0.0035.42 ▲1.03

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Labinator Minimal Maintenance Mode
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.23 ▼1.144.14 ▲1.9737.34 ▼11.87
Dashboard /wp-admin2,206 ▲214.88 ▼1.03111.64 ▲8.8942.87 ▲0.66
Posts /wp-admin/edit.php2,089 ▼01.99 ▲0.0039.36 ▲4.0935.31 ▲4.01
Add New Post /wp-admin/post-new.php1,514 ▼517.75 ▼5.54629.97 ▼64.5847.65 ▼24.17
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0093.69 ▼5.1240.61 ▼4.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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: Please take inspiration from this readme.txt

labinator-minimal-maintenance-mode/lmm.php 92% from 13 tests

This is the main PHP file of "Labinator Minimal Maintenance Mode" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("labinator-minimal-maintenance-mode.php" instead of "lmm.php")

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
Success! There were no dangerous files found in this plugin789 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP11121287687
CSS1182102

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity16.50
▷ Minimum class complexity4.00
▷ Maximum class complexity23.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods1657.14%
▷ Protected methods1139.29%
▷ Private methods13.57%
Functions9
▷ Named functions222.22%
▷ Anonymous functions777.78%
Constants10
▷ Global constants10100.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
No PNG files were detected