89% easy-car-rental-custom-lightslider

Code Review | Easy car rental lightslider

WordPress plugin Easy car rental lightslider 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.2.1
  • WordPress version: 6.3.1
  • First release: Jun 6, 2019
  • Latest release: Jun 7, 2019
  • Number of updates: 6
  • Update frequency: every 0.8 days
  • Top authors: filipescualex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /523 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Easy car rental lightslider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.93 ▼0.26
Dashboard /wp-admin3.33 ▲0.0251.59 ▼1.75
Posts /wp-admin/edit.php3.38 ▲0.0245.12 ▼5.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.12 ▼7.07
Media Library /wp-admin/upload.php3.25 ▲0.0242.27 ▲3.10
Add New /wp-admin/post-new.php?post_type=ecrcl_images3.3047.37
Light Images /wp-admin/edit.php?post_type=ecrcl_images3.2938.27

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Easy car rental lightslider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14113.35 ▼1.009.58 ▲7.6942.91 ▼2.17
Dashboard /wp-admin2,216 ▲365.48 ▼0.1683.59 ▼8.3642.30 ▼0.83
Posts /wp-admin/edit.php2,127 ▲302.01 ▲0.0534.52 ▼2.5932.56 ▼3.45
Add New Post /wp-admin/post-new.php1,551 ▲2323.25 ▲0.09691.09 ▲42.0157.05 ▼5.75
Media Library /wp-admin/upload.php1,427 ▲304.13 ▲0.02109.84 ▲5.6647.89 ▲5.56
Add New /wp-admin/post-new.php?post_type=ecrcl_images1,6293.9663.4232.07
Light Images /wp-admin/edit.php?post_type=ecrcl_images1,0881.9530.2729.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • 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)
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
Looking good! No server-side errors or output on direct access of PHP files

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)
No browser errors were detected

Optimizations

Plugin configuration 86% 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
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (https://imgur.com/a/SymKjdb)
Please take inspiration from this readme.txt

easy-car-rental-custom-lightslider/lightslider.php 77% from 13 tests

The main PHP file in "Easy car rental lightslider" 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:
  • Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-car-rental-custom-lightslider.php" instead of "lightslider.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin75 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1281667
JavaScript2137
CSS1021

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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 functions480.00%
▷ Anonymous functions120.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin