94% gamipress-modern-events-calendar-integration

Code Review | GamiPress - Modern Events Calendar integration

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

About plugin

  • Plugin page: gamipress-modern-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: May 31, 2021
  • Latest release: Jan 24, 2022
  • Number of updates: 5
  • Update frequency: every 48.2 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 480 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by GamiPress - Modern Events Calendar integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0567.11 ▲9.90
Dashboard /wp-admin3.43 ▲0.0235.74 ▼3.48
Posts /wp-admin/edit.php3.66 ▲0.0242.31 ▼10.15
Add New Post /wp-admin/post-new.php6.92 ▼0.06102.17 ▼1,224.37
Media Library /wp-admin/upload.php3.31 ▲0.0128.92 ▼5.15

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for GamiPress - Modern Events Calendar integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,823 ▲7916.22 ▲0.626.28 ▼0.352.24 ▲0.19
Dashboard /wp-admin2,923 ▲656.15 ▼0.08117.45 ▼20.26161.04 ▲1.51
Posts /wp-admin/edit.php2,719 ▲253.24 ▼0.0060.28 ▼1.48134.44 ▼4.45
Add New Post /wp-admin/post-new.php1,680 ▲1916.36 ▼1.09440.12 ▲48.36157.26 ▲3.91
Media Library /wp-admin/upload.php1,726 ▲285.53 ▲0.03148.99 ▲1.72187.07 ▼2.70

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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-modern-events-calendar-integration/gamipress-modern-events-calendar.php:190

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: There are too many tags (13 tag instead of maximum 10)
You can look at the official readme.txt

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

This is the main PHP file of "GamiPress - Modern Events Calendar integration" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gamipress-modern-events-calendar-integration.php" instead of "gamipress-modern-events-calendar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin163 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP367169163

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods7
▷ Static methods114.29%
▷ Public methods342.86%
▷ Protected methods00.00%
▷ Private methods457.14%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin