84% meetup-events-widget

Code Review | Meetup Events Widget

WordPress plugin Meetup Events Widget scored 84% from 53 tests.

About plugin

  • Plugin page: meetup-events-widget
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.8
  • WordPress version: 5.8.1
  • First release: Nov 4, 2013
  • Latest release: Sep 27, 2017
  • Number of updates: 18
  • Update frequency: every 79.1 days
  • Top authors: vicengd (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 1,343 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼268.68ms] Passed 4 tests

An overview of server-side resources used by Meetup Events Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1334.12 ▲13.19
Dashboard /wp-admin3.07 ▲0.0139.39 ▼2.41
Posts /wp-admin/edit.php3.12 ▲0.0145.29 ▲2.80
Add New Post /wp-admin/post-new.php5.43 ▼0.0093.85 ▼1,068.30
Media Library /wp-admin/upload.php3.01 ▲0.0030.22 ▼6.81

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options
widget_mewidget

Browser metrics Passed 4 tests

An overview of browser requirements for Meetup Events Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲7315.87 ▼0.067.40 ▼0.3947.89 ▼2.68
Dashboard /wp-admin2,929 ▲795.91 ▲0.02134.34 ▲0.06105.81 ▲1.73
Posts /wp-admin/edit.php2,708 ▲22.69 ▲0.0068.41 ▲3.5795.06 ▲1.78
Add New Post /wp-admin/post-new.php1,655 ▼19618.75 ▲0.95356.71 ▼10.40107.92 ▼0.77
Media Library /wp-admin/upload.php1,777 ▲55.01 ▲0.02147.67 ▲1.88112.58 ▼4.03

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_mewidget

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
Everything seems fine, however 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meetup-events-widget/includes/mewidget.php:30

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, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: eventos, events, meetup

meetup-events-widget/meetup-events-widget.php 92% from 13 tests

The main PHP file in "Meetup Events Widget" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

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
Success! There were no dangerous files found in this plugin133 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP52784112
CSS15021

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin