84% event-organiser-google-checkout

Code Review | Event Organiser Google Checkout

WordPress plugin Event Organiser Google Checkout scored84%from 54 tests.

About plugin

  • Plugin page: event-organiser-g...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 19, 2013
  • Latest release: Apr 19, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: stephenharris (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /996 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.57ms] Passed 4 tests

Analyzing server-side resources used by Event Organiser Google Checkout
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.11 ▼5.98
Dashboard /wp-admin3.31 ▲0.0143.77 ▼3.67
Posts /wp-admin/edit.php3.36 ▲0.0148.30 ▲4.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0177.59 ▼11.70
Media Library /wp-admin/upload.php3.24 ▲0.0135.46 ▲3.07

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Event Organiser Google Checkout
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.24 ▼1.341.91 ▼0.0136.56 ▼11.05
Dashboard /wp-admin2,206 ▲155.86 ▲0.78111.48 ▲10.0041.34 ▲0.05
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0540.45 ▲4.8835.17 ▲0.28
Add New Post /wp-admin/post-new.php1,538 ▲1923.04 ▼0.19657.70 ▲3.8160.36 ▲9.00
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0195.35 ▼7.7641.22 ▲0.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/event-organiser-google-checkout/event-organiser-google-checkout.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: ticketing, events, registration, bookings, google checkout...

event-organiser-google-checkout/event-organiser-google-checkout.php Passed 13 tests

Analyzing the main PHP file in "Event Organiser Google Checkout" version 1.0
43 characters long description:
Adds Google Checkout to Event Organiser Pro

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
Good job! No executable or dangerous file extensions detected335 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101138335

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity5.33
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin