78% bmlt-tabbed-map

Code Review | BMLT Tabbed Map

WordPress plugin BMLT Tabbed Map scored78%from 54 tests.

About plugin

  • Plugin page: bmlt-tabbed-map
  • Plugin version: 1.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 17, 2018
  • Latest release: Apr 10, 2023
  • Number of updates: 20
  • Update frequency: every 78.8 days
  • Top authors: paulnagle (60%)bmltenabled (45%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,688 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
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by BMLT Tabbed Map
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1143.64 ▼0.43
Dashboard /wp-admin3.41 ▲0.0654.37 ▼16.99
Posts /wp-admin/edit.php3.52 ▲0.1653.24 ▼2.44
Add New Post /wp-admin/post-new.php6.01 ▲0.1296.81 ▼0.54
Media Library /wp-admin/upload.php3.33 ▲0.1039.32 ▼2.88
BMLT Tabbed Map /wp-admin/options-general.php?page=bmlt_tabbed_map3.3034.44

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 80 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
bmlt_tabbed_map_lng_position
widget_recent-comments
db_upgraded
bmlt_tabbed_map_zoom_position
bmlt_tabbed_map_lat_position
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by BMLT Tabbed Map
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,972 ▲21114.98 ▲0.6323.68 ▲21.9872.04 ▲25.80
Dashboard /wp-admin2,225 ▲485.22 ▼0.31108.08 ▲13.7342.67 ▼0.08
Posts /wp-admin/edit.php2,127 ▲272.36 ▲0.4147.46 ▲7.6037.32 ▲0.70
Add New Post /wp-admin/post-new.php1,546 ▲2023.36 ▼0.28636.26 ▼41.8638.07 ▼19.65
Media Library /wp-admin/upload.php1,427 ▲274.94 ▲0.75105.50 ▼16.1346.17 ▼2.90
BMLT Tabbed Map /wp-admin/options-general.php?page=bmlt_tabbed_map9362.5549.5855.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 9 options in the database
    • can_compress_scripts
    • bmlt_tabbed_map_lng_position
    • bmlt_tabbed_map_zoom_position
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • bmlt_tabbed_map_lat_position

Smoke tests 50% 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 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/bmlt-tabbed-map/public/partials/bmlt_tabbed_map-public-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/bmlt-tabbed-map/admin/partials/bmlt_tabbed_map-admin-display.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% 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
8 plugin tags: maps, meeting finder, meeting list, na, addiction...

bmlt-tabbed-map/bmlt_tabbed_map.php 85% from 13 tests

This is the main PHP file of "BMLT Tabbed Map" version 1.1.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: Please rename the main PHP file in this plugin to the plugin slug ("bmlt-tabbed-map.php" instead of "bmlt_tabbed_map.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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
No dangerous file extensions were detected9,367 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
SVG30124,479
CSS101,467553,659
JavaScript1010997813
PHP1279199416

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity2.29
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.26
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods34
▷ Static methods25.88%
▷ Public methods2985.29%
▷ Protected methods00.00%
▷ Private methods514.71%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/css/images/layers-2x.png1.23KB1.67KB0.00%
public/css/images/marker-icon-2x.png2.41KB2.52KB0.00%
public/css/images/marker-shadow.png0.60KB1.16KB0.00%
public/img/map.png1.31KB1.07KB▼ 18.06%
public/css/images/layers.png0.68KB1.05KB0.00%