83% 12-step-meeting-list

Code Review | 12 Step Meeting List

WordPress plugin 12 Step Meeting List scored 83% from 54 tests.

About plugin

  • Plugin page: 12-step-meeting-list
  • Plugin version: 3.13
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.8.2
  • WordPress version: 5.8.1
  • First release: May 2, 2015
  • Latest release: Feb 27, 2022
  • Number of updates: 769
  • Update frequency: every 3.2 days
  • Top authors: meetingguide (57.09%)aasanjose (34.33%)tech2serve (8.58%)

Code review

54 tests

User reviews

25 reviews

Install metrics

800+ active / 57,373 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲1.19MB] [CPU: ▼171.61ms] Passed 4 tests

Server-side resources used by 12 Step Meeting List
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.9943.69 ▲22.70
Dashboard /wp-admin4.43 ▲1.3640.91 ▲2.35
Posts /wp-admin/edit.php4.23 ▲1.1228.59 ▼2.37
Add New Post /wp-admin/post-new.php6.72 ▲1.2879.66 ▼697.82
Media Library /wp-admin/upload.php4.37 ▲1.3633.27 ▲11.39
Add New /wp-admin/post-new.php?post_type=tsml_meeting4.4143.15
Meetings /wp-admin/edit.php?post_type=tsml_meeting4.4334.21
Districts /wp-admin/edit-tags.php?taxonomy=tsml_district&post_type=tsml_group4.3632.32
Import & Settings 1 /wp-admin/edit.php?post_type=tsml_meeting&page=import4.3436.14
Regions /wp-admin/edit-tags.php?taxonomy=tsml_region&post_type=tsml_location4.3632.38

Server storage [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: no files
Database: no new tables, 5 new options
New WordPress options
tsml_version
tsml_cache
widget_tsml_widget_upcoming
tsml_addresses
widget_tsml_widget_app_store

Browser metrics Passed 4 tests

12 Step Meeting List: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,726 ▲7516.04 ▲0.385.41 ▼3.6783.51 ▲6.43
Dashboard /wp-admin2,983 ▲876.12 ▼0.08114.29 ▼15.70167.22 ▼2.69
Posts /wp-admin/edit.php2,792 ▲683.24 ▲0.0264.15 ▼1.99143.09 ▲1.12
Add New Post /wp-admin/post-new.php3,778 ▼2919.12 ▲0.49425.54 ▼37.31154.65 ▼14.69
Media Library /wp-admin/upload.php1,806 ▲545.47 ▼0.07134.84 ▼6.13184.91 ▲1.28
Add New /wp-admin/post-new.php?post_type=tsml_meeting3,5445.20128.20241.60
Meetings /wp-admin/edit.php?post_type=tsml_meeting1,5253.0959.73115.49
Districts /wp-admin/edit-tags.php?taxonomy=tsml_district&post_type=tsml_group1,8122.7956.08120.70
Import & Settings 1 /wp-admin/edit.php?post_type=tsml_meeting&page=import2,8273.5780.49149.40
Regions /wp-admin/edit-tags.php?taxonomy=tsml_region&post_type=tsml_location1,8122.7858.65124.67

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 5 options in the database
    • tsml_cache
    • tsml_addresses
    • widget_tsml_widget_app_store
    • tsml_version
    • widget_tsml_widget_upcoming

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/12-step-meeting-list/includes/functions.php:1900
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/12-step-meeting-list/includes/save.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/12-step-meeting-list/includes/widgets.php:4
    • > 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 Warning
      Use of undefined constant WP_DEBUG - assumed 'WP_DEBUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/12-step-meeting-list/includes/pdf.php on line 14
    • > 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 get_option() in wp-content/plugins/12-step-meeting-list/includes/variables.php:9
    • > 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_shortcode() in wp-content/plugins/12-step-meeting-list/includes/shortcodes.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed: Please take inspiration from this readme.txt

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

The primary PHP file in "12 Step Meeting List" version 3.13 is used by WordPress to initiate all plugin functionality
34 characters long description:
Manage a list of recovery meetings

Code Analysis 95% from 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 detected75,298 lines of code in 60 files:
LanguageFilesBlank linesComment linesLines of code
PHP301,9209,43046,951
JSON20023,323
JavaScript92432091,580
Sass2256171,397
CSS645741,248
SVG856740
Markdown125057
XML2002

PHP code 0% from 2 tests

A short review of cyclomatic complexity and code structure
These items need your attention
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 4,412)
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 502)
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity459.00
▷ Minimum class complexity1.00
▷ Maximum class complexity4,412.00
Average method complexity10.99
▷ Minimum method complexity1.00
▷ Maximum method complexity502.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods550
▷ Static methods9617.45%
▷ Public methods42176.55%
▷ Protected methods12923.45%
▷ Private methods00.00%
Functions131
▷ Named functions8867.18%
▷ Anonymous functions4332.82%
Constants48
▷ Global constants48100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin