83% ezrentout-online-webstore

Code Review | EZRentOut Online Webstore

WordPress plugin EZRentOut Online Webstore scored83%from 54 tests.

About plugin

  • Plugin page: ezrentout-online-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-5.7
  • WordPress version: 6.3.1
  • First release: Jun 3, 2019
  • Latest release: Apr 13, 2021
  • Number of updates: 7
  • Update frequency: every 97.6 days
  • Top authors: ezrentout (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /2,183 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼13.54ms] Passed 4 tests

Analyzing server-side resources used by EZRentOut Online Webstore
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0145.62 ▼8.78
Dashboard /wp-admin3.32 ▼0.0246.80 ▼22.49
Posts /wp-admin/edit.php3.37 ▲0.0150.68 ▲0.19
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.48 ▼23.09
Media Library /wp-admin/upload.php3.24 ▲0.0137.65 ▲0.91
EZRentOut /wp-admin/options-general.php?page=EZRentOut3.2131.96

Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Just a few items left to fix
  • There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/ezrentout-online-webstore/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for EZRentOut Online Webstore
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.25 ▼0.751.62 ▼0.4241.24 ▼2.64
Dashboard /wp-admin2,225 ▲194.86 ▼0.95109.06 ▼1.2139.88 ▼1.75
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.0039.32 ▼1.3535.03 ▼2.19
Add New Post /wp-admin/post-new.php1,535 ▼1023.01 ▼0.06615.64 ▲21.8347.63 ▼9.64
Media Library /wp-admin/upload.php1,407 ▲74.21 ▼0.11101.43 ▼1.7443.43 ▼4.26
EZRentOut /wp-admin/options-general.php?page=EZRentOut8632.0128.5526.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/ezrentout-online-webstore/ezr_admin/ezr_admin_for_widget.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: online store, rental, availability calendar, reservations, booking system

ezrentout-online-webstore/ezrentout-webstore-widget.php 85% from 13 tests

The primary PHP file in "EZRentOut Online Webstore" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 304 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("ezrentout-online-webstore.php" instead of "ezrentout-webstore-widget.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
No dangerous file extensions were detected137 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP213991
CSS17046

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.54MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png26.33KB10.56KB▼ 59.91%
assets/ezr-logo.png3.36KB2.37KB▼ 29.39%
assets/screenshot-5.png199.22KB51.48KB▼ 74.16%
assets/screenshot-4.png104.39KB27.19KB▼ 73.95%
assets/screenshot-1.png60.54KB16.70KB▼ 72.41%