72% upcoming-meetings-bmlt

Code Review | Upcoming Meetings BMLT

WordPress plugin Upcoming Meetings BMLT scored72%from 54 tests.

About plugin

  • Plugin page: upcoming-meetings...
  • Plugin version: 1.5.2
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 30, 2018
  • Latest release: Nov 18, 2023
  • Number of updates: 50
  • Update frequency: every 36.9 days
  • Top authors: bmltenabled (76%)pjaudiomv (26%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,190 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▼3.17ms] Passed 4 tests

Server-side resources used by Upcoming Meetings BMLT
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.39 ▼0.38
Dashboard /wp-admin3.50 ▲0.1545.41 ▼7.09
Posts /wp-admin/edit.php3.61 ▲0.2547.62 ▲1.43
Add New Post /wp-admin/post-new.php6.08 ▲0.1979.62 ▼6.63
Media Library /wp-admin/upload.php3.42 ▲0.1934.61 ▲2.03
Upcoming Meetings BMLT /wp-admin/options-general.php?page=upcoming-meetings-bmlt3.3932.58

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
upcoming_meetings_options
theysaidso_admin_options
db_upgraded
recovery_mode_email_last_sent
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Upcoming Meetings BMLT
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4014.16 ▼0.231.81 ▲0.1638.98 ▼2.90
Dashboard /wp-admin2,202 ▲255.49 ▼0.2288.02 ▼12.2140.67 ▼0.93
Posts /wp-admin/edit.php2,113 ▲131.97 ▼0.0535.26 ▼1.2333.62 ▲0.52
Add New Post /wp-admin/post-new.php1,535 ▼923.38 ▲0.43683.87 ▲85.5158.16 ▲5.46
Media Library /wp-admin/upload.php1,407 ▲74.15 ▼0.0499.39 ▲4.3542.75 ▲1.06
Upcoming Meetings BMLT /wp-admin/options-general.php?page=upcoming-meetings-bmlt2,9941.147.9629.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • upcoming_meetings_options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • recovery_mode_email_last_sent
    • db_upgraded
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=upcoming-meetings-bmlt
    • > Error in wp-content/plugins/upcoming-meetings-bmlt/src/Helpers.php+642
    Uncaught Error: Class 'Locale' not found in wp-content/plugins/upcoming-meetings-bmlt/src/Helpers.php:642
    Stack trace:
    #0 wp-content/plugins/upcoming-meetings-bmlt/src/Settings.php(322): UpcomingMeetings\Helpers->getLangInfo()
    #1 wp-content/plugins/upcoming-meetings-bmlt/src/Settings.php(241): UpcomingMeetings\Settings->printLangDropdownOption()
    #2 wp-content/plugins/upcoming-meetings-bmlt/src/Settings.php(65): UpcomingMeetings\Settings->printAdminForm()
    #3 wp-includes/class-wp-hook.php(310): UpcomingMeetings\Settings->adminOptionsPage()
    #4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #5 wp-includes/plugin.php(517): WP_Hook->do_action()
    #6 wp-admin/admin.php(259): do_action()
    #7 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #8 {main}
    thrown

SRP 50% 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
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/upcoming-meetings-bmlt/upcoming-meetings.php
    • > /wp-content/plugins/upcoming-meetings-bmlt/src/partials/_instructions.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=upcoming-meetings-bmlt
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).accordion is not a function" "TypeError: $(...).accordion is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/upcoming-meetings-bmlt/js/upcoming_meetings_admin.js?ver=1700312236:9:36)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/options-general.php?page=upcoming-meetings-bmlt
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).accordion is not a function

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: narcotics anonymous, bmlt, upcoming meetings, upcoming meetings bmlt, na...

upcoming-meetings-bmlt/upcoming-meetings.php 85% from 13 tests

The main file in "Upcoming Meetings BMLT" v. 1.5.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("upcoming-meetings-bmlt.php" instead of "upcoming-meetings.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 169 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,606 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS577841,637
PHP6106453942
JavaScript21118
Markdown1809

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity33.25
▷ Minimum class complexity4.00
▷ Maximum class complexity85.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods41
▷ Static methods24.88%
▷ Public methods3585.37%
▷ Protected methods00.00%
▷ Private methods614.63%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
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_flat_55_fbec88_40x100.png0.20KB0.08KB▼ 57.77%
css/redmond/images/ui-icons_f9bd01_256x240.png4.44KB4.17KB▼ 6.02%
css/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%
css/redmond/images/ui-icons_217bc0_256x240.png4.44KB4.17KB▼ 6.02%
css/redmond/images/ui-icons_469bdd_256x240.png4.44KB4.17KB▼ 6.02%