10% meetup-widgets

Code Review | Meetup Widgets

WordPress plugin Meetup Widgets scored10%from 54 tests.

About plugin

  • Plugin page: meetup-widgets
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.4.1
  • WordPress version: 6.3.1
  • First release: Feb 9, 2012
  • Latest release: Jan 7, 2016
  • Number of updates: 33
  • Update frequency: every 43.3 days
  • Top authors: ryelle (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /9,274 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/meetup-widgets/vs_meetup_widgets.php+364
    Methods with the same name as their class will not be constructors in a future version of PHP; VsMeetSingleWidget has a deprecated constructor

Server metrics [RAM: ▼1.77MB] [CPU: ▼52.65ms] Passed 4 tests

Server-side resources used by Meetup Widgets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.22 ▼1.244.58 ▼35.50
Dashboard /wp-admin2.24 ▼1.107.41 ▼54.37
Posts /wp-admin/edit.php2.25 ▼1.117.02 ▼36.55
Add New Post /wp-admin/post-new.php2.24 ▼3.646.98 ▼84.16
Media Library /wp-admin/upload.php2.24 ▼0.985.30 ▼27.36

Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_vsmeetlistwidget
widget_recent-comments
widget_vsmeetuserlistwidget
widget_vsmeetsinglewidget
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Meetup Widgets: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▼0.001.55 ▼0.1938.67 ▼8.96
Dashboard /wp-admin2,195 ▲185.61 ▲0.0591.19 ▼1.9540.27 ▲1.30
Posts /wp-admin/edit.php2,100 ▲32.02 ▲0.0539.99 ▲4.1134.62 ▼0.93
Add New Post /wp-admin/post-new.php1,526 ▼023.43 ▲0.30661.10 ▼9.9855.44 ▼1.76
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.2196.85 ▲4.2441.95 ▼2.36

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/meetup-widgets/vs_meetup_widgets.php+364
    Methods with the same name as their class will not be constructors in a future version of PHP; VsMeetSingleWidget has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_theysaidso_widget
    • widget_vsmeetlistwidget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_vsmeetuserlistwidget
    • widget_vsmeetsinglewidget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/meetup-widgets/meetup-list.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'VsMeet' not found in wp-content/plugins/meetup-widgets/vs_meetup_widgets.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/meetup-widgets/meetup-single.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meetup-widgets/vs_meetup_widgets.php:364
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/meetup-widgets/meetup-list.php on line 5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Example of the single event detail widget, shows title, date, an excerpt of the description, number of currently-rsvp'd attendees, a link to RSVP (through OAuth if configured), and the location (linking to a google map).), #2 (Example of the upcoming event list widget. Lists a set number of events from the group you specify, title & date.)
Please take inspiration from this readme.txt

meetup-widgets/vs_meetup.php 92% from 13 tests

"Meetup Widgets" version 2.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("meetup-widgets.php" instead of "vs_meetup.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected535 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP485101535

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity11.60
▷ Minimum class complexity4.00
▷ Maximum class complexity41.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity16.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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png19.24KB7.33KB▼ 61.90%
screenshot-2.png13.83KB4.88KB▼ 64.71%