88% ee4-quickpay

Code Review | Event Espresso - QuickPay (EE 4.x+)

WordPress plugin Event Espresso - QuickPay (EE 4.x+) scored 88% from 54 tests.

About plugin

  • Plugin page: ee4-quickpay
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.0-4.7.1
  • WordPress version: 5.8.1
  • First release: Jan 30, 2017
  • Latest release: Jan 30, 2017
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: PerfectSolution (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 592 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Event Espresso - QuickPay (EE 4.x+)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1243.69 ▲19.56
Dashboard /wp-admin3.06 ▲0.0152.03 ▲0.99
Posts /wp-admin/edit.php3.12 ▲0.0149.34 ▲1.17
Add New Post /wp-admin/post-new.php5.42 ▼0.01101.98 ▼669.63
Media Library /wp-admin/upload.php3.01 ▲0.0138.62 ▼8.57

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 53 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Event Espresso - QuickPay (EE 4.x+)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.29 ▲0.7910.49 ▼0.3147.93 ▼3.32
Dashboard /wp-admin2,967 ▲335.97 ▼0.17155.53 ▼28.95121.83 ▲9.22
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0173.14 ▼1.7699.44 ▲0.49
Add New Post /wp-admin/post-new.php1,683 ▼018.73 ▲0.18437.57 ▲41.14116.46 ▼1.68
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.02185.37 ▼9.36128.12 ▼31.32

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 50% 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)
Good news, no errors were detected

SRP 0% 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
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/ee4-quickpay/payment_methods/quickpay_offsite/EEG_quickpay_offsite.gateway.php
    • > /wp-content/plugins/ee4-quickpay/payment_methods/quickpay_offsite/EE_PMT_quickpay_offsite.pm.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: status in wp-content/plugins/ee4-quickpay/templates/meta_box/transaction.actions.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ee4-quickpay/event-espresso-quickpay.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ee4-quickpay/templates/meta_box/transaction.actions.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ee4-quickpay/payment_methods/quickpay_offsite/help_tabs/quickpay_offsite.help_tab.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% 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
9 plugin tags: eventespresso quickpay, eventespresso, event-espresso quickpay, gateway, event espresso...

ee4-quickpay/event-espresso-quickpay.php 85% from 13 tests

This is the main PHP file of "Event Espresso - QuickPay (EE 4.x+)" 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
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, 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 ("ee4-quickpay.php" instead of "event-espresso-quickpay.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,486 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PO File14345140

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity6.85
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
▷ Static methods2942.65%
▷ Public methods5073.53%
▷ Protected methods34.41%
▷ Private methods1522.06%
▷ Named functions133.33%
▷ Anonymous functions266.67%
▷ Global constants666.67%
▷ Class constants333.33%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
21 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings