72% meetup-venues

Code Review | Meetup.com Venues

WordPress plugin Meetup.com Venues scored72%from 54 tests.

About plugin

  • Plugin page: meetup-venues
  • Plugin version: 0.02
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 10, 2014
  • Latest release: Jun 11, 2014
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: OntoDevelopment (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,296 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.03MB] [CPU: ▼6.98ms] Passed 4 tests

An overview of server-side resources used by Meetup.com Venues
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2744.02 ▲2.58
Dashboard /wp-admin3.35 ▲0.0045.85 ▼22.72
Posts /wp-admin/edit.php3.40 ▲0.0449.13 ▲0.84
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.44 ▼6.37
Media Library /wp-admin/upload.php3.27 ▲0.0437.05 ▲0.35
Shortcode Generator /wp-admin/admin.php?page=meetup-venues3.2532.58
Settings /wp-admin/admin.php?page=meetup-venues-settings3.2333.89

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
meetup_api_key
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Meetup.com Venues
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9513.92 ▼0.262.35 ▲0.6438.52 ▼4.16
Dashboard /wp-admin2,222 ▲445.65 ▼0.0789.83 ▼25.2841.42 ▼5.10
Posts /wp-admin/edit.php2,130 ▲302.01 ▼0.0139.66 ▲4.9736.55 ▼0.20
Add New Post /wp-admin/post-new.php1,548 ▲2223.22 ▼0.76617.74 ▼59.0256.81 ▲5.90
Media Library /wp-admin/upload.php1,427 ▲274.30 ▲0.0797.06 ▼3.8246.90 ▼3.42
Shortcode Generator /wp-admin/admin.php?page=meetup-venues1,0401.9027.7035.35
Settings /wp-admin/admin.php?page=meetup-venues-settings8152.0022.7926.04

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • meetup_api_key

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=meetup-venues-settings
    • > Notice in wp-content/plugins/meetup-venues/options.php+15
    Undefined property: MeetupVenuesAdmin::$api_key

SRP 0% 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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/meetup-venues/venues.php
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      scandir(MEETUP_VENUES_TEMPLATES): failed to open dir: No such file or directory in wp-content/plugins/meetup-venues/venues.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/meetup-venues/meetup-venues.php:14
    • > PHP Warning
      scandir(): (errno 2): No such file or directory in wp-content/plugins/meetup-venues/venues.php on line 9
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/meetup-venues/venues.php on line 9
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/meetup-venues/options.php:15
    • > PHP Warning
      Use of undefined constant MEETUP_VENUES_TEMPLATES - assumed 'MEETUP_VENUES_TEMPLATES' (this will throw an Error in a future version of PHP) in wp-content/plugins/meetup-venues/venues.php on line 9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: A description for screenshot #2 is required in meetup-venues/assets to your readme.txt
  • Plugin Name: Please specify the plugin name on the first line ( === meetup-venues === )
You can look at the official readme.txt

meetup-venues/meetup-venues.php Passed 13 tests

The principal PHP file in "Meetup.com Venues" v. 0.02 is loaded by WordPress automatically on each request
46 characters long description:
Show Meetup.com events that are venue specific

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
There were no executable files found in this plugin1,623 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP72409471,454
JavaScript187118
CSS111135
HTML20016

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity63.00
▷ Minimum class complexity8.00
▷ Maximum class complexity205.00
Average method complexity5.43
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods69
▷ Static methods6188.41%
▷ Public methods3753.62%
▷ Protected methods3144.93%
▷ Private methods11.45%
Functions11
▷ Named functions19.09%
▷ Anonymous functions1090.91%
Constants41
▷ Global constants49.76%
▷ Class constants3790.24%
▷ Public constants37100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin