89% easy-car-rental-custom-backend

Code Review | Easy car rental custom backend

WordPress plugin Easy car rental custom backend scored89%from 54 tests.

About plugin

  • Plugin page: easy-car-rental-c...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.1.1
  • WordPress version: 6.3.1
  • First release: May 31, 2019
  • Latest release: May 31, 2019
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: filipescualex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /554 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.68ms] Passed 4 tests

Analyzing server-side resources used by Easy car rental custom backend
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.90 ▲0.93
Dashboard /wp-admin3.32 ▲0.0250.43 ▲0.27
Posts /wp-admin/edit.php3.38 ▲0.0245.53 ▼1.46
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.96 ▼26.37
Media Library /wp-admin/upload.php3.25 ▲0.0235.30 ▲0.85
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=ecrcb_auto3.2440.37
All Cars /wp-admin/edit.php?post_type=ecrcb_auto3.3038.82
Add New Cars /wp-admin/post-new.php?post_type=ecrcb_auto3.3849.56

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
category_children

Browser metrics Passed 4 tests

A check of browser resources used by Easy car rental custom backend
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲16513.42 ▼0.998.52 ▲6.9645.84 ▲8.60
Dashboard /wp-admin2,222 ▲475.56 ▼0.0794.27 ▼6.5066.53 ▲25.24
Posts /wp-admin/edit.php2,127 ▲271.99 ▼0.0335.39 ▼2.1235.14 ▲1.32
Add New Post /wp-admin/post-new.php1,715 ▲18924.62 ▲1.57702.58 ▲119.2451.32 ▼8.62
Media Library /wp-admin/upload.php1,430 ▲274.14 ▼0.1292.28 ▼4.0171.98 ▲25.63
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=ecrcb_auto1,4822.2727.4535.28
All Cars /wp-admin/edit.php?post_type=ecrcb_auto1,1411.9232.3627.74
Add New Cars /wp-admin/post-new.php?post_type=ecrcb_auto2,3407.59161.36116.89

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
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • category_children
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Cars avialable), #2 (Custom post type for all the vehicle details.)
  • Plugin Name: Please specify the plugin name on the first line ( === easy-car-rental-custom-backend === )
You can look at the official readme.txt

easy-car-rental-custom-backend/index.php 92% from 13 tests

The main PHP file in "Easy car rental custom backend" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-car-rental-custom-backend.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin77 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1231074
CSS1003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
masina/car-compact.png0.16KB0.15KB▼ 3.68%