83% smart-agenda-prise-de-rendez-vous-en-ligne

Code Review | Smart Agenda - Prise de rendez-vous en ligne

WordPress plugin Smart Agenda - Prise de rendez-vous en ligne scored83%from 54 tests.

About plugin

  • Plugin page: smart-agenda-pris...
  • Plugin version: 4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: May 6, 2019
  • Latest release: Sep 13, 2023
  • Number of updates: 36
  • Update frequency: every 44.3 days
  • Top authors: smartagenda (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

500+ active /12,576 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
Installer ran successfully

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

A check of server-side resources used by Smart Agenda - Prise de rendez-vous en ligne
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.98 ▼1.35
Dashboard /wp-admin3.31 ▲0.0143.76 ▼9.16
Posts /wp-admin/edit.php3.36 ▲0.0144.25 ▼1.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0177.80 ▼15.90
Media Library /wp-admin/upload.php3.24 ▲0.0134.14 ▲1.80

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Smart Agenda - Prise de rendez-vous en ligne
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲9214.40 ▲0.062.09 ▲0.3744.01 ▼0.59
Dashboard /wp-admin2,227 ▲505.73 ▲0.1088.02 ▼2.6539.98 ▼1.93
Posts /wp-admin/edit.php2,137 ▲372.27 ▲0.3040.98 ▲1.1735.79 ▼1.70
Add New Post /wp-admin/post-new.php1,553 ▲2723.44 ▲0.36711.27 ▲119.0435.96 ▼15.45
Media Library /wp-admin/upload.php1,438 ▲384.36 ▲0.2098.30 ▼6.4245.05 ▲1.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-agenda-prise-de-rendez-vous-en-ligne/smart-agenda.php:41

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

smart-agenda-prise-de-rendez-vous-en-ligne/smart-agenda.php 85% from 13 tests

The entry point to "Smart Agenda - Prise de rendez-vous en ligne" version 4.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smart-agenda-prise-de-rendez-vous-en-ligne.php" instead of "smart-agenda.php")

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
Good job! No executable or dangerous file extensions detected1,118 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP115973744
CSS1550260
SVG10182
PO File15732

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/parametres-bouton-smartagenda-zoom.png53.79KB18.64KB▼ 65.35%
img/plugin-wordpress.png30.22KB10.72KB▼ 64.51%
img/parametres-bouton-smartagenda.png46.37KB18.62KB▼ 59.86%
img/synchronisation-google-agenda.png54.67KB19.67KB▼ 64.02%
img/logo-smartagenda.png3.62KB2.51KB▼ 30.51%