84% list-locations-bmlt

Code Review | List Locations BMLT

WordPress plugin List Locations BMLT scored84%from 54 tests.

About plugin

  • Plugin page: list-locations-bmlt
  • Plugin version: 2.3.1
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 22, 2018
  • Latest release: Oct 12, 2023
  • Number of updates: 20
  • Update frequency: every 90.8 days
  • Top authors: pjaudiomv (55%)bmltenabled (50%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,809 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.95ms] Passed 4 tests

Analyzing server-side resources used by List Locations BMLT
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.53 ▼6.28
Dashboard /wp-admin3.41 ▲0.1152.71 ▲0.24
Posts /wp-admin/edit.php3.53 ▲0.1749.60 ▲2.11
Add New Post /wp-admin/post-new.php5.99 ▲0.1185.99 ▼19.87
Media Library /wp-admin/upload.php3.34 ▲0.1138.08 ▲3.66
List Locations BMLT /wp-admin/options-general.php?page=list-locations-plugin3.3133.67

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
list_locations_options

Browser metrics Passed 4 tests

A check of browser resources used by List Locations BMLT
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.32 ▼0.031.97 ▲0.3745.64 ▲7.21
Dashboard /wp-admin2,208 ▲315.61 ▼0.0184.54 ▼6.6142.63 ▲2.81
Posts /wp-admin/edit.php2,110 ▲131.98 ▼0.0140.23 ▲3.0336.01 ▲0.03
Add New Post /wp-admin/post-new.php1,535 ▲923.26 ▼0.25637.52 ▼62.9750.14 ▼11.52
Media Library /wp-admin/upload.php1,404 ▲44.16 ▲0.0498.27 ▼9.5245.59 ▲0.21
List Locations BMLT /wp-admin/options-general.php?page=list-locations-plugin1,3802.2547.3744.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • list_locations_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/list-locations-bmlt/src/partials/_instructions.php
    • > /wp-content/plugins/list-locations-bmlt/list-locations.php

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

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: bmlt, list locations, list locations bmlt, na, narcotics anonymous...

list-locations-bmlt/list-locations.php 85% from 13 tests

The principal PHP file in "List Locations BMLT" v. 2.3.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("list-locations-bmlt.php" instead of "list-locations.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 230 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,243 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS548831,529
PHP611040687
JavaScript21118
Markdown1809

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity21.00
▷ Minimum class complexity4.00
▷ Maximum class complexity38.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods37
▷ Static methods25.41%
▷ Public methods2464.86%
▷ Protected methods00.00%
▷ Private methods1335.14%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/start/images/ui-bg_flat_75_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%
css/start/images/ui-icons_f5e175_256x240.png4.44KB4.17KB▼ 6.02%
css/chosen-sprite.png0.53KB0.88KB0.00%
css/start/images/ui-icons_056b93_256x240.png4.44KB4.17KB▼ 6.02%
css/chosen-sprite@2x.png0.72KB0.83KB0.00%