84% devllo-events-bookings

Code Review | Bookings for Devllo Events

WordPress plugin Bookings for Devllo Events scored84%from 54 tests.

About plugin

  • Plugin page: devllo-events-boo...
  • Plugin version: 0.2
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.7
  • WordPress version: 6.3.1
  • First release: Apr 10, 2021
  • Latest release: Nov 7, 2021
  • Number of updates: 7
  • Update frequency: every 30.6 days
  • Top authors: devlloplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /421 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 successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Bookings for Devllo Events
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.57 ▼1.96
Dashboard /wp-admin3.31 ▲0.0149.10 ▼3.52
Posts /wp-admin/edit.php3.37 ▲0.0149.87 ▼3.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0198.57 ▼7.16
Media Library /wp-admin/upload.php3.24 ▲0.0141.77 ▲5.65

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Bookings for Devllo Events
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.25 ▼0.041.77 ▲0.1644.99 ▲0.35
Dashboard /wp-admin2,209 ▲325.62 ▲0.0293.50 ▲8.3443.21 ▲1.60
Posts /wp-admin/edit.php2,114 ▲141.97 ▼0.0542.92 ▼0.3939.79 ▲1.15
Add New Post /wp-admin/post-new.php1,537 ▲923.30 ▲0.32668.18 ▼30.1256.09 ▲5.58
Media Library /wp-admin/upload.php1,411 ▲144.21 ▼0.02101.28 ▼15.1344.20 ▼3.16

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
Please take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/devllo-events-bookings/payments/payments.php:62
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/devllo-events-bookings/inc/devllo-events-bookings-checkout-fields.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/devllo-events-bookings/inc/devllo-events-bookings-form.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Attendees section on Events Page.) image required
Please take inspiration from this readme.txt

devllo-events-bookings/devllo-events-bookings.php 92% from 13 tests

"Bookings for Devllo Events" version 0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,079 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP103541071,076
CSS1003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.50
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods44
▷ Static methods49.09%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.11MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
Screenshot-1.png115.62KB27.49KB▼ 76.23%