94% gamipress-the-events-calendar-integration

Code Review | GamiPress - The Events Calendar integration

WordPress plugin GamiPress - The Events Calendar integration scored 94% from 54 tests.

About plugin

  • Plugin page: gamipress-the-eve...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Sep 20, 2019
  • Latest release: Jan 24, 2022
  • Number of updates: 15
  • Update frequency: every 57.2 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,240 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼291.94ms] Passed 4 tests

An overview of server-side resources used by GamiPress - The Events Calendar integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0659.45 ▲2.43
Dashboard /wp-admin3.44 ▲0.0242.91 ▲7.75
Posts /wp-admin/edit.php3.67 ▲0.0238.37 ▲0.51
Add New Post /wp-admin/post-new.php6.91 ▼0.0798.48 ▼1,151.64
Media Library /wp-admin/upload.php3.32 ▲0.0235.22 ▼19.06

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for GamiPress - The Events Calendar integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲7316.01 ▲0.376.02 ▼0.792.14 ▼0.37
Dashboard /wp-admin2,923 ▲626.09 ▼0.12123.48 ▼24.07161.16 ▼58.77
Posts /wp-admin/edit.php2,713 ▲223.24 ▼0.0068.57 ▲0.43191.32 ▲41.23
Add New Post /wp-admin/post-new.php1,734 ▲1521.56 ▼1.34463.51 ▲22.65174.87 ▲13.75
Media Library /wp-admin/upload.php1,726 ▲315.50 ▲0.01146.59 ▼6.47190.26 ▼2.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-the-events-calendar-integration/gamipress-the-events-calendar.php:218

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 20 tag instead of maximum 10
The official readme.txt might help

gamipress-the-events-calendar-integration/gamipress-the-events-calendar.php 92% from 13 tests

"GamiPress - The Events Calendar integration" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gamipress-the-events-calendar-integration.php" instead of "gamipress-the-events-calendar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin231 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4107225231

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods9
▷ Static methods111.11%
▷ Public methods555.56%
▷ Protected methods00.00%
▷ Private methods444.44%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 files were detected