90% easy-paypal-events-tickets

Code Review | Easy PayPal Events

WordPress plugin Easy PayPal Events scored90%from 54 tests.

About plugin

  • Plugin page: easy-paypal-event...
  • Plugin version: 1.1.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2
  • WordPress version: 6.3.1
  • First release: Feb 22, 2016
  • Latest release: Jun 7, 2023
  • Number of updates: 31
  • Update frequency: every 88.6 days
  • Top authors: scottpaterson (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active /25,089 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.36MB] [CPU: ▼5.30ms] Passed 4 tests

Server-side resources used by Easy PayPal Events
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3753.68 ▲10.21
Dashboard /wp-admin3.67 ▲0.3253.87 ▼8.87
Posts /wp-admin/edit.php3.78 ▲0.4353.15 ▼5.14
Add New Post /wp-admin/post-new.php6.25 ▲0.3792.24 ▼9.60
Media Library /wp-admin/upload.php3.59 ▲0.3639.64 ▲2.41
Events /wp-admin/admin.php?page=wpeevent_buttons3.5738.57
Orders /wp-admin/admin.php?page=wpeevent_menu3.5837.99
Settings /wp-admin/admin.php?page=wpeevent_settings3.6341.93

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
wpeevent_notice_shown
widget_recent-comments
wpeevent_settingsoptions
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Easy PayPal Events: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲8713.12 ▼1.052.11 ▲0.1842.24 ▼2.35
Dashboard /wp-admin2,233 ▲514.86 ▼1.00110.09 ▲13.5246.72 ▲6.55
Posts /wp-admin/edit.php2,116 ▲242.00 ▼0.0633.29 ▼7.5834.79 ▼2.74
Add New Post /wp-admin/post-new.php1,582 ▲6817.62 ▲0.11651.21 ▼45.6153.20 ▼3.50
Media Library /wp-admin/upload.php1,412 ▲244.28 ▲0.0797.94 ▼12.6842.91 ▼9.63
Events /wp-admin/admin.php?page=wpeevent_buttons9162.0625.7428.60
Orders /wp-admin/admin.php?page=wpeevent_menu9572.0623.4329.13
Settings /wp-admin/admin.php?page=wpeevent_settings2,7488.24167.6779.86

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • wpeevent_settingsoptions
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: events, ecommerce, tickets, paypal, paypal buttons

easy-paypal-events-tickets/easy-paypal-events-tickets.php Passed 13 tests

The principal PHP file in "Easy PayPal Events" v. 1.1.8 is loaded by WordPress automatically on each request
49 characters long description:
A simple and easy way to sell tickets for events.

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
Success! There were no dangerous files found in this plugin2,744 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP148862182,744

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity12.33
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods311.54%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin