84% lh-event-tickets-rsvps

Code Review | LH Event Tickets RSVPs

WordPress plugin LH Event Tickets RSVPs scored84%from 54 tests.

About plugin

  • Plugin page: lh-event-tickets-...
  • Plugin version: 1.00
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Jul 7, 2018
  • Latest release: Jul 7, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /674 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by LH Event Tickets RSVPs
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0134.43 ▼6.80
Dashboard /wp-admin3.32 ▼0.0242.23 ▼17.24
Posts /wp-admin/edit.php3.37 ▲0.0147.37 ▲0.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0177.97 ▼16.93
Media Library /wp-admin/upload.php3.24 ▲0.0133.59 ▼0.77

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

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

Browser metrics Passed 4 tests

Checking browser requirements for LH Event Tickets RSVPs
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.34 ▼1.401.58 ▼0.1237.63 ▼3.09
Dashboard /wp-admin2,206 ▲214.89 ▼0.92113.88 ▲14.0741.69 ▼0.65
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0137.36 ▼3.8336.31 ▼0.63
Add New Post /wp-admin/post-new.php1,514 ▼2317.52 ▼5.74648.89 ▲20.6758.49 ▲4.19
Media Library /wp-admin/upload.php1,388 ▲34.23 ▼0.0295.64 ▼4.1741.70 ▼1.77

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lh-event-tickets-rsvps/lh-event-tickets-rsvps.php:168

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: avatar, event tickets, modern tribe, rsvp, buddypress

lh-event-tickets-rsvps/lh-event-tickets-rsvps.php 92% from 13 tests

The primary PHP file in "LH Event Tickets RSVPs" version 1.00 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected85 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21351885

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods233.33%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin