84% booketbord

Code Review | BookEtBord

WordPress plugin BookEtBord scored84%from 54 tests.

About plugin

  • Plugin page: booketbord
  • Plugin version: 1.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Sep 9, 2017
  • Latest release: Jul 6, 2023
  • Number of updates: 24
  • Update frequency: every 89.4 days
  • Top authors: welrachid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,182 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.01MB] [CPU: ▼6.50ms] Passed 4 tests

This is a short check of server-side resources used by BookEtBord
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.88 ▼1.35
Dashboard /wp-admin3.32 ▲0.0249.14 ▲0.66
Posts /wp-admin/edit.php3.37 ▲0.0146.94 ▼3.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.50 ▼13.50
Media Library /wp-admin/upload.php3.25 ▲0.0139.86 ▼7.73

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for BookEtBord
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,873 ▲11613.34 ▼1.032.21 ▲0.0944.13 ▼1.69
Dashboard /wp-admin2,218 ▲275.86 ▲0.99101.47 ▼0.8082.24 ▲39.35
Posts /wp-admin/edit.php2,104 ▲121.98 ▼0.1937.21 ▼4.1333.22 ▼3.28
Add New Post /wp-admin/post-new.php1,536 ▲323.08 ▲0.03694.67 ▲30.2650.05 ▼14.69
Media Library /wp-admin/upload.php1,394 ▲34.25 ▲0.0798.86 ▼0.3683.02 ▲40.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/booketbord/booketobrd.php
    • > /wp-content/plugins/booketbord/settings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === booketbord === )
The official readme.txt might help

booketbord/booketobrd.php 92% from 13 tests

The principal PHP file in "BookEtBord" v. 1.6.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("booketbord.php" instead of "booketobrd.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin228 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP268119
JavaScript11260
CSS11049

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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%
Functions5
▷ Named functions5100.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
5 PNG files occupy 0.47MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png68.12KB27.41KB▼ 59.76%
assets/close.png1.49KB1.59KB0.00%
assets/icon.png0.17KB0.15KB▼ 13.64%
assets/screenshot-1.png141.55KB62.73KB▼ 55.69%
assets/screenshot-2.png274.40KB109.54KB▼ 60.08%