78% limousine-search

Code Review | Limousine Search

WordPress plugin Limousine Search scored78%from 54 tests.

About plugin

  • Plugin page: limousine-search
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-5.9
  • WordPress version: 6.3.1
  • First release: Aug 29, 2017
  • Latest release: Apr 6, 2023
  • Number of updates: 6
  • Update frequency: every 341.2 days
  • Top authors: mcnardelli (83.33%)limousinesearch (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /862 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
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▲1.01ms] Passed 4 tests

Analyzing server-side resources used by Limousine Search
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1242.94 ▲1.21
Dashboard /wp-admin3.43 ▲0.1350.03 ▲0.63
Posts /wp-admin/edit.php3.55 ▲0.1956.65 ▲3.48
Add New Post /wp-admin/post-new.php6.03 ▲0.1497.00 ▼1.30
Media Library /wp-admin/upload.php3.36 ▲0.1241.43 ▲4.52

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Limousine Search
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲13113.66 ▼0.529.58 ▲7.5042.85 ▼0.98
Dashboard /wp-admin2,215 ▲355.63 ▲0.0190.30 ▼0.1941.03 ▼0.16
Posts /wp-admin/edit.php2,120 ▲201.99 ▲0.0039.07 ▲2.2734.61 ▼0.32
Add New Post /wp-admin/post-new.php1,543 ▲1723.57 ▲0.53676.53 ▼29.0855.74 ▼2.43
Media Library /wp-admin/upload.php1,420 ▲234.24 ▲0.05110.89 ▲0.0347.04 ▼2.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/limousine-search/resources/views/front/shortcodes/iframe.php
    • > /wp-content/plugins/limousine-search/resources/views/front/shortcodes/reservation.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/limousine-search/resources/views/admin/fields/text.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/limousine-search/resources/views/admin/main.php:4
    • > PHP Notice
      Undefined variable: url in wp-content/plugins/limousine-search/resources/views/front/shortcodes/iframe.php on line 5
    • > PHP Notice
      Undefined variable: pluginName in wp-content/plugins/limousine-search/resources/views/admin/fields/text.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === limousine-search === )
The official readme.txt might help

limousine-search/limousinesearch.php 85% from 13 tests

The main file in "Limousine Search" v. 2.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("limousine-search.php" instead of "limousinesearch.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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 detected1,290 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP292694271,208
JSON20033
JavaScript2112932
CSS22017

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.36
Average class complexity7.75
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods86
▷ Static methods2427.91%
▷ Public methods7486.05%
▷ Protected methods00.00%
▷ Private methods1213.95%
Functions12
▷ Named functions433.33%
▷ Anonymous functions866.67%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin