72% community-meetings

Code Review | Community meetings

WordPress plugin Community meetings scored72%from 54 tests.

About plugin

  • Plugin page: community-meetings
  • Plugin version: 0.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Apr 13, 2021
  • Latest release: Jul 29, 2021
  • Number of updates: 6
  • Update frequency: every 18.7 days
  • Top authors: wpgranada (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /465 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
Installer ran successfully

Server metrics [RAM: ▲0.64MB] [CPU: ▼0.87ms] Passed 4 tests

Analyzing server-side resources used by Community meetings
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.11 ▲0.6642.50 ▲2.67
Dashboard /wp-admin3.94 ▲0.6348.37 ▼0.45
Posts /wp-admin/edit.php4.00 ▲0.6450.20 ▲0.27
Add New Post /wp-admin/post-new.php6.68 ▲0.8088.92 ▼5.98
Media Library /wp-admin/upload.php3.86 ▲0.6337.92 ▲6.23
Meetups /wp-admin/edit.php?post_type=metgs_meeting3.9138.53
Sponsors /wp-admin/edit-tags.php?taxonomy=metgs_sponsor&post_type=metgs_meeting3.8840.26
Speakers /wp-admin/edit-tags.php?taxonomy=metgs_speaker&post_type=metgs_meeting3.8841.11
Settings /wp-admin/edit.php?post_type=metgs_meeting&page=meetings_admin3.7431.76
Add New Meetup /wp-admin/post-new.php?post_type=metgs_meeting6.6890.60
Places /wp-admin/edit-tags.php?taxonomy=metgs_place&post_type=metgs_meeting3.8841.29

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Community meetings
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲9113.24 ▼0.931.73 ▼0.3542.46 ▼0.86
Dashboard /wp-admin2,246 ▲575.83 ▲0.9398.33 ▼21.4039.99 ▲2.83
Posts /wp-admin/edit.php2,132 ▲402.02 ▲0.0233.57 ▼6.4832.61 ▼1.96
Add New Post /wp-admin/post-new.php1,571 ▲5423.41 ▲5.88639.51 ▼24.4961.19 ▲5.64
Media Library /wp-admin/upload.php1,431 ▲464.20 ▲0.0699.10 ▼3.5341.14 ▼1.63
Meetups /wp-admin/edit.php?post_type=metgs_meeting1,1292.0031.5028.58
Sponsors /wp-admin/edit-tags.php?taxonomy=metgs_sponsor&post_type=metgs_meeting1,4933.2248.1531.36
Speakers /wp-admin/edit-tags.php?taxonomy=metgs_speaker&post_type=metgs_meeting1,4863.2641.7728.89
Settings /wp-admin/edit.php?post_type=metgs_meeting&page=meetings_admin8452.0624.3826.11
Add New Meetup /wp-admin/post-new.php?post_type=metgs_meeting6,32520.01874.0534.31
Places /wp-admin/edit-tags.php?taxonomy=metgs_place&post_type=metgs_meeting2,5533.1444.6272.62

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/edit.php?post_type=metgs_meeting&page=meetings_admin
    • > Notice in wp-content/plugins/community-meetings/admin/METGS_settings_page.php+51
    Trying to access array offset on value of type null

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 20× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/community-meetings/admin/METGS_taxonomy_place.php
    • > /wp-content/plugins/community-meetings/functions/METGS_functions_inputs.php
    • > /wp-content/plugins/community-meetings/public/METGS_public.php
    • > /wp-content/plugins/community-meetings/admin/METGS_admin_taxonomies.php
    • > /wp-content/plugins/community-meetings/admin/METGS_admin.php
    • > /wp-content/plugins/community-meetings/public/METGS_public_cpt.php
    • > /wp-content/plugins/community-meetings/functions/METGS_functions_countries.php
    • > /wp-content/plugins/community-meetings/public/METGS_meeting.php
    • > /wp-content/plugins/community-meetings/public/METGS_sponsor.php
    • > /wp-content/plugins/community-meetings/admin/METGS_settings_page.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/community-meetings/templates/archive-metgs_meeting.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: meetings, community

community-meetings/community-meetings.php 92% from 13 tests

Analyzing the main PHP file in "Community meetings" version 0.5
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

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
Everything looks great! No dangerous files found in this plugin2,398 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP223351092,155
CSS2111116
Sass18097
JavaScript18430

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity12.10
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes15.00%
Methods184
▷ Static methods21.09%
▷ Public methods16187.50%
▷ Protected methods00.00%
▷ Private methods2312.50%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants16100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin