90% embed-rentle

Code Review | Rentle - Easy Rental Booking System

WordPress plugin Rentle - Easy Rental Booking System scored 90% from 54 tests.

About plugin

  • Plugin page: embed-rentle
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 2, 2020
  • Latest release: Aug 17, 2023
  • Number of updates: 18
  • Update frequency: every 63.4 days
  • Top authors: luuptek (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active / 7,364 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Server-side resources used by Rentle - Easy Rental Booking System
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.04 ▼0.43
Dashboard /wp-admin3.31 ▲0.0150.87 ▼2.67
Posts /wp-admin/edit.php3.36 ▲0.0153.76 ▼3.59
Add New Post /wp-admin/post-new.php5.90 ▲0.01137.70 ▲41.91
Media Library /wp-admin/upload.php3.24 ▲0.0136.81 ▼6.98

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

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

Browser metrics Passed 4 tests

Rentle - Easy Rental Booking System: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲1313.74 ▲0.514.71 ▲2.4939.54 ▼9.14
Dashboard /wp-admin2,209 ▲34.84 ▼0.03105.29 ▼12.0839.15 ▼1.97
Posts /wp-admin/edit.php2,092 ▲32.03 ▼0.0439.62 ▲5.4636.41 ▲3.09
Add New Post /wp-admin/post-new.php6,418 ▲4,88520.60 ▼2.66861.05 ▲78.4051.58 ▼1.90
Media Library /wp-admin/upload.php1,388 ▼04.27 ▼0.0596.72 ▼7.8739.70 ▼7.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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
5 plugin tags: booking, rental, reservation, calendar, availability

embed-rentle/plugin.php 92% from 13 tests

The principal PHP file in "Rentle - Easy Rental Booking System" v. 1.2.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("embed-rentle.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin7,684 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JSON2007,151
JavaScript62022219
PHP34668183
Sass318281
Markdown117048
CSS2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity15.00
▷ Minimum class complexity4.00
▷ Maximum class complexity26.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods654.55%
▷ Public methods763.64%
▷ Protected methods00.00%
▷ Private methods436.36%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin