72% temporary-closures-bmlt

Code Review | Temporary Closures BMLT

WordPress plugin Temporary Closures BMLT scored72%from 54 tests.

About plugin

  • Plugin page: temporary-closure...
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Mar 17, 2020
  • Latest release: Oct 13, 2022
  • Number of updates: 8
  • Update frequency: every 117.5 days
  • Top authors: bmltenabled (62.5%)pjaudiomv (50%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /805 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.11MB] [CPU: ▼7.33ms] Passed 4 tests

An overview of server-side resources used by Temporary Closures BMLT
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1237.79 ▼1.32
Dashboard /wp-admin3.43 ▲0.0846.77 ▼13.26
Posts /wp-admin/edit.php3.55 ▲0.1946.81 ▼5.78
Add New Post /wp-admin/post-new.php6.01 ▲0.1291.41 ▼8.96
Media Library /wp-admin/upload.php3.35 ▲0.1239.22 ▼0.07

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
temporary_closures_options
widget_recent-posts

Browser metrics Passed 4 tests

Temporary Closures BMLT: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲17813.80 ▼0.558.70 ▲6.9037.22 ▼1.72
Dashboard /wp-admin2,214 ▲265.77 ▲0.9094.48 ▼10.0639.90 ▼3.09
Posts /wp-admin/edit.php2,099 ▲102.01 ▼0.0336.55 ▼1.6934.76 ▲2.24
Add New Post /wp-admin/post-new.php1,543 ▲2423.04 ▲0.04644.61 ▼17.5855.93 ▲1.35
Media Library /wp-admin/upload.php1,399 ▲144.24 ▲0.04112.84 ▼2.4247.87 ▲2.15
Temporary Closures BMLT /wp-admin/temporary-closures-bmlt.php260.440.0912.99

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • temporary_closures_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 25% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/temporary-closures-bmlt/partials/_instructions.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/temporary-closures-bmlt/temporary-closures-bmlt.php:458

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/temporary-closures-bmlt.php
    • > Network (severe)
    wp-admin/temporary-closures-bmlt.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: temporary closures bmlt, basic meeting list toolbox, temporary closures, bmlt, narcotics anonymous...

temporary-closures-bmlt/temporary-closures-bmlt.php 92% from 13 tests

The main PHP file in "Temporary Closures BMLT" ver. 1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 160 characters long)

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
No dangerous file extensions were detected2,463 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS570831,649
PHP38390739
Markdown246057
JavaScript21118

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.47
Average class complexity118.00
▷ Minimum class complexity118.00
▷ Maximum class complexity118.00
Average method complexity5.68
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
17 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png0.33KB0.16KB▼ 52.38%
css/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%
css/redmond/images/ui-icons_6da8d5_256x240.png4.44KB4.17KB▼ 6.02%
css/redmond/images/ui-icons_cd0a0a_256x240.png4.44KB4.17KB▼ 6.02%
css/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png0.29KB0.10KB▼ 65.41%