68% ibexrentacar

Code Review | Ibexrentacar

WordPress plugin Ibexrentacar scored68%from 54 tests.

About plugin

  • Plugin page: ibexrentacar
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-5.6
  • WordPress version: 6.3.1
  • First release: Jun 5, 2016
  • Latest release: Jan 5, 2021
  • Number of updates: 23
  • Update frequency: every 73.1 days
  • Top authors: ibexestudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,287 total downloads

Benchmarks

Plugin footprint 65% 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.75MB] [CPU: ▼34.53ms] Passed 4 tests

An overview of server-side resources used by Ibexrentacar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1950.11 ▲4.54
Dashboard /wp-admin3.19 ▼0.1129.84 ▼27.31
Posts /wp-admin/edit.php3.19 ▼0.1731.56 ▼21.08
Add New Post /wp-admin/post-new.php3.19 ▼2.7026.64 ▼80.32
Media Library /wp-admin/upload.php3.19 ▼0.0428.11 ▼9.41

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Ibexrentacar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1814.23 ▼0.122.10 ▲0.1642.89 ▲2.09
Dashboard /wp-admin2,198 ▲185.56 ▼0.1295.34 ▲0.8766.68 ▲20.94
Posts /wp-admin/edit.php2,118 ▲151.99 ▲0.0238.61 ▼2.2834.63 ▲1.75
Add New Post /wp-admin/post-new.php1,539 ▲1323.51 ▲1.88684.37 ▼26.7957.55 ▲8.72
Media Library /wp-admin/upload.php1,415 ▲214.21 ▼0.00101.99 ▼0.9878.63 ▲30.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/ibexrentacar/ibexrentacar-settings.php+1
    Undefined variable: page
  • This plugin does not fully uninstall, leaving 7 options in the database
    • ibexrentacar_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ibexrentacar/lib/irc/frontend/shortcode/shortirc.php
    • > /wp-content/plugins/ibexrentacar/lib/wp/update.php
  • 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/ibexrentacar/lib/irc/frontend/irc/config.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ws_request() in wp-content/plugins/ibexrentacar/lib/irc/frontend/irc/dashboard.php:11
    • > PHP Notice
      Undefined index: lsPluginPath in wp-content/plugins/ibexrentacar/lib/irc/frontend/support/support.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ws_request() in wp-content/plugins/ibexrentacar/lib/irc/frontend/import/sync.php:11
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/ibexrentacar/lib/irc/frontend/irc/layout/layout.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ibexrentacar/lib/irc/frontend/irc/layout/foot.php:11
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/ibexrentacar/lib/irc/frontend/irc/user.php:11
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/ibexrentacar/lib/irc/frontend/irc/layout/head.php:11
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/ibexrentacar/lib/irc/frontend/support/documentation.php:11
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/ibexrentacar/lib/irc/frontend/support/sidebar.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

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: fleet, car rental software, rent a car, ibexrentacar, alquiler coches

ibexrentacar/ibexrentacar-plugin.php 92% from 13 tests

The main file in "Ibexrentacar" v. 1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ibexrentacar.php" instead of "ibexrentacar-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
Success! There were no dangerous files found in this plugin79 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP24017668
XML1009
CSS1001
JSON1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.74
Average class complexity18.50
▷ Minimum class complexity7.00
▷ Maximum class complexity30.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2488.89%
▷ Protected methods311.11%
▷ Private methods00.00%
Functions32
▷ Named functions2887.50%
▷ Anonymous functions412.50%
Constants7
▷ Global constants7100.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
36 PNG files occupy 0.24MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/language/en.png0.59KB0.43KB▼ 26.17%
img/language/ca.png0.96KB0.15KB▼ 84.07%
img/place.png4.08KB2.01KB▼ 50.80%
img/language/es.png0.32KB0.25KB▼ 21.85%
img/icon_16x16.png3.36KB0.68KB▼ 79.80%