90% wp-eventbrite-embedded-checkout

Code Review | WP Eventbrite Embedded Checkout

WordPress plugin WP Eventbrite Embedded Checkout scored 90% from 54 tests.

About plugin

  • Plugin page: wp-eventbrite-emb...
  • Plugin version: 2.1.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Jan 30, 2019
  • Latest release: Aug 11, 2023
  • Number of updates: 77
  • Update frequency: every 21.5 days
  • Top authors: hendcorp (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active / 14,543 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.73ms] Passed 4 tests

Server-side resources used by WP Eventbrite Embedded Checkout
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.32 ▲0.73
Dashboard /wp-admin3.35 ▲0.0444.68 ▼1.44
Posts /wp-admin/edit.php3.40 ▲0.0446.88 ▼3.27
Add New Post /wp-admin/post-new.php5.92 ▲0.0495.23 ▼2.93
Media Library /wp-admin/upload.php3.27 ▲0.0433.29 ▲1.52

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Eventbrite Embedded Checkout
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.26 ▼1.261.50 ▼0.1539.04 ▲0.99
Dashboard /wp-admin2,221 ▲335.86 ▲1.0096.49 ▼7.5542.31 ▼0.13
Posts /wp-admin/edit.php2,101 ▲92.01 ▲0.0138.80 ▼1.8034.57 ▲0.16
Add New Post /wp-admin/post-new.php1,548 ▲2123.24 ▲0.02603.26 ▼9.0955.55 ▲4.92
Media Library /wp-admin/upload.php1,394 ▲34.23 ▲0.0298.01 ▲0.2542.29 ▼1.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: checkout, events, eventbrite, form

wp-eventbrite-embedded-checkout/wp-eventbrite-embedded-checkout.php 92% from 13 tests

The main PHP file in "WP Eventbrite Embedded Checkout" ver. 2.1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • 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

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
Success! There were no dangerous files found in this plugin177 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32640158
JavaScript12019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/banner.png18.31KB7.12KB▼ 61.10%
img/vipbanner.png78.48KB30.30KB▼ 61.40%