84% customize-event-google-calendar-for-woocommerce-booking

Code Review | Customize Event Google Calendar for WooCommerce Booking

WordPress plugin Customize Event Google Calendar for WooCommerce Booking scored84%from 54 tests.

About plugin

  • Plugin page: customize-event-g...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2.1
  • WordPress version: 6.3.1
  • First release: May 25, 2019
  • Latest release: May 25, 2019
  • Number of updates: 3
  • Update frequency: every 87.3 days
  • Top authors: cuxaro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /781 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by Customize Event Google Calendar for WooCommerce Booking
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.82 ▼0.47
Dashboard /wp-admin3.31 ▼0.0346.27 ▼15.08
Posts /wp-admin/edit.php3.37 ▲0.0146.32 ▼5.94
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.79 ▼24.06
Media Library /wp-admin/upload.php3.24 ▲0.0136.67 ▲0.28

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

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

Browser metrics Passed 4 tests

Customize Event Google Calendar for WooCommerce Booking: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.34 ▼1.034.35 ▲2.6043.69 ▲4.99
Dashboard /wp-admin2,209 ▲275.91 ▲0.0695.88 ▼7.3539.31 ▼2.12
Posts /wp-admin/edit.php2,089 ▼32.12 ▲0.0933.84 ▼7.8033.83 ▼2.33
Add New Post /wp-admin/post-new.php1,535 ▲1623.27 ▲0.25687.33 ▲30.3356.26 ▼2.55
Media Library /wp-admin/upload.php1,385 ▼34.15 ▼0.0094.02 ▼15.0442.80 ▼3.67

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

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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_filter() in wp-content/plugins/customize-event-google-calendar-for-woocommerce-booking/buzz-393-gcalendar-sync.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: woo, woo commerce, event, woocommerce bookings, woocommerce...

customize-event-google-calendar-for-woocommerce-booking/buzz-393-gcalendar-sync.php 85% from 13 tests

"Customize Event Google Calendar for WooCommerce Booking" version 1.0.1'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:
  • 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
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("customize-event-google-calendar-for-woocommerce-booking.php" instead of "buzz-393-gcalendar-sync.php")

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
No dangerous file extensions were detected22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1291322

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin