83% login-to-viberent

Code Review | Viberent Rental Management Plugin

WordPress plugin Viberent Rental Management Plugin scored83%from 54 tests.

About plugin

  • Plugin page: login-to-viberent
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: May 16, 2022
  • Latest release: Mar 17, 2023
  • Number of updates: 19
  • Update frequency: every 18.6 days
  • Top authors: viberent (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /291 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.04MB] [CPU: ▼5.16ms] Passed 4 tests

Server-side resources used by Viberent Rental Management Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.94 ▼0.5222.24 ▼18.24
Dashboard /wp-admin3.42 ▲0.1249.63 ▲1.21
Posts /wp-admin/edit.php3.47 ▲0.1148.44 ▲3.25
Add New Post /wp-admin/post-new.php6.00 ▲0.1192.03 ▼6.85
Media Library /wp-admin/upload.php3.34 ▲0.1138.65 ▲4.15

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Viberent Rental Management Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,447 ▼28813.15 ▼1.230.49 ▼1.359.43 ▼40.30
Dashboard /wp-admin2,226 ▲385.90 ▲0.80108.83 ▲4.3539.74 ▼5.51
Posts /wp-admin/edit.php2,112 ▲232.04 ▲0.0540.14 ▲3.4235.20 ▼0.07
Add New Post /wp-admin/post-new.php1,685 ▲17122.21 ▲4.74594.41 ▼87.0474.65 ▲11.76
Media Library /wp-admin/upload.php1,408 ▲204.25 ▲0.0796.59 ▼2.8645.86 ▲3.28

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/login-to-viberent/templates/place_my_order.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-to-viberent/functions-layout-api.php:371
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/login-to-viberent/templates/thank_shopping.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/login-to-viberent/templates/item_page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/login-to-viberent/viberent-hook.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/login-to-viberent/templates/my_cart.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/login-to-viberent/login-to-viberent.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-to-viberent/templates/layout_page_ajax.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/login-to-viberent/templates/item_page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/login-to-viberent/templates/category_page.php:3

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 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (17 tag instead of maximum 10)
The official readme.txt might help

login-to-viberent/login-to-viberent.php 85% from 13 tests

The entry point to "Viberent Rental Management Plugin" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 470 characters long)
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin33,381 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
CSS103,5806416,592
SVG3009,552
JavaScript31,0955093,673
PHP1197423,564

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.50MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/category.png259.05KB85.64KB▼ 66.94%
assets/images/icon-delete.png0.24KB0.24KB▼ 1.60%
(invalid) assets/images/no_image.png3.80KB0.00KB▼ 100.00%
assets/images/item.png241.98KB80.35KB▼ 66.79%
assets/images/VibeRent-LOGO.png8.73KB5.08KB▼ 41.82%