83% ecgf-registration

Code Review | Events Calendar GForms Registration

WordPress plugin Events Calendar GForms Registration scored83%from 54 tests.

About plugin

  • Plugin page: ecgf-registration
  • Plugin version: 0.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8.2
  • WordPress version: 6.3.1
  • First release: Sep 18, 2017
  • Latest release: Sep 18, 2017
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: tajensen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,527 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.00MB] [CPU: ▲0.70ms] Passed 4 tests

An overview of server-side resources used by Events Calendar GForms Registration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.92 ▼1.54
Dashboard /wp-admin3.31 ▲0.0049.40 ▲1.86
Posts /wp-admin/edit.php3.36 ▲0.0052.00 ▲2.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.52 ▲0.01
Media Library /wp-admin/upload.php3.23 ▲0.0038.56 ▲2.49

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 502 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Events Calendar GForms Registration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.77 ▲0.242.09 ▲0.3447.89 ▲0.48
Dashboard /wp-admin2,195 ▲185.62 ▲0.0786.07 ▼6.7738.01 ▼5.91
Posts /wp-admin/edit.php2,100 ▲31.94 ▼0.0539.68 ▲2.8935.78 ▼0.84
Add New Post /wp-admin/post-new.php1,526 ▼023.24 ▲0.06688.80 ▲5.9557.86 ▲0.88
Media Library /wp-admin/upload.php1,403 ▲34.19 ▲0.0798.80 ▼13.2042.60 ▼2.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 147× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ecgf-registration/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ecgf-registration/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/ecgf-registration/vendor/CMB2/includes/types/CMB2_Type_Multi_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\Test\\TestCase' not found in wp-content/plugins/ecgf-registration/vendor/composer/installers/tests/Composer/Installers/Test/BitrixInstallerTest.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ecgf-registration/vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ecgf-registration/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ecgf-registration/vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php:4
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/ecgf-registration/tests/bootstrap.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/ecgf-registration/vendor/CMB2/includes/rest-api/CMB2_REST_Controller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ecgf-registration/vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: event registration, gravity forms, event register, events calendar, the events calendar

ecgf-registration/events-calendar-gforms-registration.php 77% from 13 tests

The main file in "Events Calendar GForms Registration" v. 0.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ecgf-registration.php" instead of "events-calendar-gforms-registration.php")
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin50,943 lines of code in 346 files:
LanguageFilesBlank linesComment linesLines of code
PO File12013,78217,88231,544
PHP1752,7136,85510,730
CSS131,1331,1684,965
Sass15291251,330
JavaScript5254273945
Markdown82600909
JSON300315
Bourne Shell121799
YAML315161
XML34045

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity8.34
▷ Minimum class complexity1.00
▷ Maximum class complexity175.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes176
▷ Abstract classes105.68%
▷ Concrete classes16694.32%
▷ Final classes00.00%
Methods685
▷ Static methods8111.82%
▷ Public methods55881.46%
▷ Protected methods11917.37%
▷ Private methods81.17%
Functions63
▷ Named functions5790.48%
▷ Anonymous functions69.52%
Constants18
▷ Global constants844.44%
▷ Class constants1055.56%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 compressed PNG files occupy 0.17MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/CMB2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
vendor/CMB2/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
vendor/CMB2/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
vendor/CMB2/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
vendor/CMB2/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%