83% course-booking-platform

Code Review | Course Booking Platform

WordPress plugin Course Booking Platform scored83%from 54 tests.

About plugin

  • Plugin page: course-booking-pl...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7.0-6.2.0
  • WordPress version: 6.3.1
  • First release: Apr 2, 2023
  • Latest release: Apr 2, 2023
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: coursefinder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /122 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Course Booking Platform
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0134.17 ▼8.32
Dashboard /wp-admin3.32 ▲0.0148.02 ▼3.50
Posts /wp-admin/edit.php3.37 ▲0.0145.68 ▼4.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.87 ▼16.12
Media Library /wp-admin/upload.php3.24 ▲0.0136.00 ▼0.29

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

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

Browser metrics Passed 4 tests

Course Booking Platform: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,952 ▲21726.69 ▲11.91240.66 ▲238.1545.49 ▲0.14
Dashboard /wp-admin2,221 ▲304.87 ▲0.00104.05 ▼4.2743.04 ▲0.79
Posts /wp-admin/edit.php2,101 ▲122.01 ▲0.0135.69 ▼0.4732.95 ▼5.15
Add New Post /wp-admin/post-new.php1,543 ▼12423.33 ▲0.77598.86 ▼28.9460.23 ▲17.51
Media Library /wp-admin/upload.php1,397 ▲124.27 ▲0.0698.56 ▲1.4245.44 ▲1.18

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • 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
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
Please take a closer look at the following
  • 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/course-booking-platform/course-booking-platform.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("")
You can look at the official readme.txt

course-booking-platform/course-booking-platform.php 85% from 13 tests

The main PHP script in "Course Booking Platform" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("5.5" instead of "5.7.0")
  • 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected29 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161029

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
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%
Functions4
▷ Named functions4100.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