84% 12-step-meeting-list

Code Review | 12 Step Meeting List

WordPress plugin 12 Step Meeting List scored84%from 54 tests.

About plugin

  • Plugin page: 12-step-meeting-list
  • Plugin version: 3.14.25
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.4
  • WordPress version: 6.3.1
  • First release: May 2, 2015
  • Latest release: Nov 1, 2023
  • Number of updates: 821
  • Update frequency: every 3.8 days
  • Top authors: meetingguide (53.47%)aasanjose (36.66%)tech2serve (8.04%)brianwarea24 (2.19%)

Code review

54 tests

User reviews

27 reviews

Install metrics

900+ active /78,534 total downloads

Benchmarks

Plugin footprint 82% 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: ▲1.36MB] [CPU: ▲10.65ms] Passed 4 tests

An overview of server-side resources used by 12 Step Meeting List
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.55 ▲1.0944.82 ▲2.81
Dashboard /wp-admin4.77 ▲1.4669.14 ▲20.39
Posts /wp-admin/edit.php4.83 ▲1.4766.55 ▲17.08
Add New Post /wp-admin/post-new.php7.35 ▲1.46112.09 ▲6.79
Media Library /wp-admin/upload.php4.69 ▲1.4550.18 ▲15.93
Import & Export /wp-admin/edit.php?post_type=tsml_meeting&page=import4.6646.79
Add New /wp-admin/post-new.php?post_type=tsml_meeting4.8357.26
Regions /wp-admin/edit-tags.php?taxonomy=tsml_region&post_type=tsml_location4.6847.69
Settings 1 /wp-admin/edit.php?post_type=tsml_meeting&page=settings4.5943.14
Districts /wp-admin/edit-tags.php?taxonomy=tsml_district&post_type=tsml_group4.6850.02
Meetings /wp-admin/edit.php?post_type=tsml_meeting4.7549.21

Server storage [IO: ▲6.31MB] [DB: ▲0.01MB] 67% from 3 tests

A short overview of filesystem and database impact
Please try to fix the following items
  • You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/12-step-meeting-list/" and "wp-content/uploads/"
    • (new file) wp-content/tsml-cache-5dd14d629a.json
Filesystem: 74 new files
Database: no new tables, 12 new options
New WordPress options
tsml_addresses
tsml_cache
db_upgraded
widget_tsml_widget_upcoming
tsml_version
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
tsml_cache_writable
widget_tsml_widget_app_store
...

Browser metrics Passed 4 tests

A check of browser resources used by 12 Step Meeting List
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲12214.74 ▲0.181.84 ▲0.0341.48 ▼3.69
Dashboard /wp-admin2,284 ▲1135.65 ▼0.0193.25 ▲0.5442.24 ▼0.39
Posts /wp-admin/edit.php2,146 ▲431.97 ▼0.0239.73 ▼0.7537.02 ▼0.67
Add New Post /wp-admin/post-new.php1,564 ▲3623.32 ▲0.55665.79 ▲72.2855.16 ▼3.00
Media Library /wp-admin/upload.php1,446 ▲434.16 ▼0.0295.23 ▼1.3843.95 ▼1.10
Import & Export /wp-admin/edit.php?post_type=tsml_meeting&page=import1,4494.8944.7943.22
Add New /wp-admin/post-new.php?post_type=tsml_meeting2,4955.1897.9072.68
Regions /wp-admin/edit-tags.php?taxonomy=tsml_region&post_type=tsml_location1,3202.1228.7030.37
Settings 1 /wp-admin/edit.php?post_type=tsml_meeting&page=settings1,4924.8040.4942.07
Districts /wp-admin/edit-tags.php?taxonomy=tsml_district&post_type=tsml_group1,3232.2428.9330.89
Meetings /wp-admin/edit.php?post_type=tsml_meeting1,1884.8151.4130.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 12 options
    • theysaidso_admin_options
    • tsml_cache
    • widget_theysaidso_widget
    • tsml_version
    • tsml_cache_writable
    • widget_tsml_widget_upcoming
    • widget_tsml_widget_app_store
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
  • 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/12-step-meeting-list/includes/shortcodes.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/12-step-meeting-list/12-step-meeting-list.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/12-step-meeting-list/includes/admin_lists.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/12-step-meeting-list/includes/init.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/12-step-meeting-list/includes/admin_region.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/12-step-meeting-list/includes/admin_menu.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function tsml_assets() in wp-content/plugins/12-step-meeting-list/templates/archive-meetings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function tsml_assets() in wp-content/plugins/12-step-meeting-list/templates/single-meetings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function tsml_assets() in wp-content/plugins/12-step-meeting-list/templates/single-locations.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/12-step-meeting-list/includes/widgets_init.php:3

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 on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed: You can look at the official readme.txt

12-step-meeting-list/12-step-meeting-list.php Passed 13 tests

Analyzing the main PHP file in "12 Step Meeting List" version 3.14.25
34 characters long description:
Manage a list of recovery meetings

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected30,649 lines of code in 60 files:
LanguageFilesBlank linesComment linesLines of code
JSON30018,081
PHP229527647,354
Sass5328131,613
JavaScript92492201,509
CSS645651,251
SVG956741
YAML30073
Markdown114025
XML2002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity19.60
▷ Minimum class complexity4.00
▷ Maximum class complexity69.00
Average method complexity4.44
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions143
▷ Named functions9566.43%
▷ Anonymous functions4833.57%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin