93% eventmatches-calendar

Code Review | EventMatches

WordPress plugin EventMatches scored 93% from 54 tests.

About plugin

  • Plugin page: eventmatches-cale...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.2.1
  • WordPress version: 5.9.2
  • First release: Mar 10, 2020
  • Latest release: Apr 13, 2021
  • Number of updates: 9
  • Update frequency: every 44.3 days
  • Top authors: benfatola1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 343 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▼290.10ms] Passed 4 tests

Analyzing server-side resources used by EventMatches
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2158.02 ▲6.75
Dashboard /wp-admin3.57 ▲0.17119.50 ▲84.67
Posts /wp-admin/edit.php3.80 ▲0.1640.22 ▲4.94
Add New Post /wp-admin/post-new.php7.07 ▲0.08101.57 ▼1,165.93
Media Library /wp-admin/upload.php3.46 ▲0.1625.12 ▼6.15
Custom Events /wp-admin/edit.php?post_type=em_custom_event3.5626.39
Settings /wp-admin/admin.php?page=ccs-event-matches3.4423.97

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for EventMatches
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,006 ▲28017.31 ▲1.2621.66 ▲14.002.72 ▲0.26
Dashboard /wp-admin2,965 ▲1046.87 ▲0.78135.61 ▼0.35168.04 ▲3.59
Posts /wp-admin/edit.php2,764 ▲763.23 ▼0.0074.08 ▲8.09199.67 ▲57.35
Add New Post /wp-admin/post-new.php1,721 ▲1019.67 ▼2.03393.30 ▼56.90166.32 ▲6.93
Media Library /wp-admin/upload.php1,768 ▲705.93 ▲0.43126.78 ▼15.88183.83 ▼13.92
Custom Events /wp-admin/edit.php?post_type=em_custom_event1,4373.4763.07133.51
Settings /wp-admin/admin.php?page=ccs-event-matches1,1573.1458.75117.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/eventmatches-calendar/views/setting.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/eventmatches-calendar/views/calendar.php:30
    • > PHP Notice
      Undefined variable: auth_token in wp-content/plugins/eventmatches-calendar/views/calendar.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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
3 plugin tags: events, eventmatches, calendar

eventmatches-calendar/event-matches-calendar.php 77% from 13 tests

Analyzing the main PHP file in "EventMatches" version 1.0.5
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("eventmatches-calendar.php" instead of "event-matches-calendar.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 plugin3,279 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript7110261,475
CSS613732948
PHP10203233847
Markdown1409

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity12.71
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods37
▷ Static methods924.32%
▷ Public methods3491.89%
▷ Protected methods00.00%
▷ Private methods38.11%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants18.33%
▷ Class constants1191.67%
▷ Public constants11100.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
PNG images were not found in this plugin