84% rdv360-reservation-en-ligne

Code Review | Rdv360 Réservation en ligne

WordPress plugin Rdv360 Réservation en ligne scored84%from 54 tests.

About plugin

  • Plugin page: rdv360-reservatio...
  • Plugin version: 3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.0.3
  • WordPress version: 6.3.1
  • First release: Apr 11, 2018
  • Latest release: Oct 31, 2022
  • Number of updates: 40
  • Update frequency: every 41.6 days
  • Top authors: ftristant (80%)sashon (22.5%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,875 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.68ms] Passed 4 tests

Server-side resources used by Rdv360 Réservation en ligne
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.07 ▼4.25
Dashboard /wp-admin3.36 ▲0.0643.34 ▼3.37
Posts /wp-admin/edit.php3.41 ▲0.0644.95 ▼1.55
Add New Post /wp-admin/post-new.php5.94 ▲0.0691.16 ▼4.52
Media Library /wp-admin/upload.php3.28 ▲0.0631.29 ▼2.59

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Rdv360 Réservation en ligne
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4713.27 ▼1.131.81 ▼0.1442.71 ▼1.75
Dashboard /wp-admin2,221 ▲306.04 ▲1.16101.35 ▼4.9639.25 ▼7.77
Posts /wp-admin/edit.php2,107 ▲182.05 ▲0.0436.32 ▼0.4635.47 ▼3.55
Add New Post /wp-admin/post-new.php1,546 ▲3223.21 ▲5.60610.15 ▼56.7560.15 ▲8.71
Media Library /wp-admin/upload.php1,400 ▲124.23 ▼0.05100.09 ▼5.5841.30 ▼2.74

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rdv360-reservation-en-ligne/includes/rdv360-functions.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rdv360-reservation-en-ligne/rdv360-reservation.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: rendez-vous, online booking, rservation en ligne, ecommerce, rendez-vous en ligne...

rdv360-reservation-en-ligne/rdv360-reservation.php 85% from 13 tests

This is the main PHP file of "Rdv360 Réservation en ligne" version 3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("rdv360-reservation-en-ligne.php" instead of "rdv360-reservation.php")
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin310 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24919249
PO File110035
CSS16026

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin