10% reloaded-rezdy

Code Review | Rezdy Reloaded

WordPress plugin Rezdy Reloaded scored 10% from 54 tests.

About plugin

  • Plugin page: reloaded-rezdy
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.8
  • WordPress version: 6.3.1
  • First release: Dec 23, 2015
  • Latest release: Jul 13, 2017
  • Number of updates: 7
  • Update frequency: every 81.4 days
  • Top authors: EnigmaWeb (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active / 2,458 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/reloaded-rezdy/index.php+737
    rename(wp-content/plugins/reloaded-rezdy//rezdy-template/single-.php,wp-content/plugins/reloaded-rezdy//rezdy-template/single-.php): No such file or directory

Server metrics [RAM: ▲0.10MB] [CPU: ▼2.33ms] Passed 4 tests

An overview of server-side resources used by Rezdy Reloaded
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.1036.81 ▼2.72
Dashboard /wp-admin3.41 ▲0.1153.13 ▲5.10
Posts /wp-admin/edit.php3.50 ▲0.1554.96 ▲5.22
Add New Post /wp-admin/post-new.php5.99 ▲0.1190.26 ▼16.90
Media Library /wp-admin/upload.php3.33 ▲0.1045.15 ▲9.81
Settings /wp-admin/edit.php?post_type=&page=rzd_items_settings3.1133.29

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 14 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
rzd_post_category
widget_theysaidso_widget
widget_recent-comments
rzd_thumbnail_height
rzd_thumbnail_width
rzd_post_name_slug_old
rzd_post_name_slug
...

Browser metrics Passed 4 tests

Checking browser requirements for Rezdy Reloaded
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲14613.30 ▼1.075.87 ▲4.0142.27 ▼10.91
Dashboard /wp-admin2,238 ▲474.95 ▼0.95103.32 ▲5.8478.92 ▲36.96
Posts /wp-admin/edit.php2,136 ▲502.04 ▼0.0034.56 ▼2.5334.64 ▲1.42
Add New Post /wp-admin/post-new.php1,561 ▲2823.38 ▲0.17709.10 ▲116.8056.25 ▲8.31
Media Library /wp-admin/upload.php1,429 ▲384.25 ▲0.00102.52 ▲4.8377.82 ▲34.14
Settings /wp-admin/edit.php?post_type=&page=rzd_items_settings280.440.073.62

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 14 options in the database
    • rzd_api_link
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • rzd_post_name_slug
    • db_upgraded
    • can_compress_scripts
    • rzd_post_category
    • rzd_thumbnail_width
    • ...

Smoke tests 50% from 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)
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/reloaded-rezdy/index.php:80
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/reloaded-rezdy/rezdy-template/single-rezdy-items.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/reloaded-rezdy/rezdy-template/rezdy-items.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/reloaded-rezdy/rezdy-template/taxonomy-rezdy-category.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/reloaded-rezdy/rezdy_settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/reloaded-rezdy/rezdy-template/taxonomy-rezdy-tags.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reloaded-rezdy/includes/rezdy_items_posttype.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/edit.php?post_type=&page=rzd_items_settings
    • > Network (severe)
    wp-admin/edit.php?post_type=&page=rzd_items_settings - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: rezdy, reservations, rezdy reloaded, bookings

reloaded-rezdy/index.php 85% from 13 tests

The main PHP file in "Rezdy Reloaded" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("reloaded-rezdy.php" instead of "index.php")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
There were no executable files found in this plugin2,492 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP8165441,300
CSS12111,192

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.27
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%
Functions24
▷ Named functions2395.83%
▷ Anonymous functions14.17%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 1.70MB with 1.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png332.39KB99.38KB▼ 70.10%
screenshot-3.png190.24KB57.09KB▼ 69.99%
screenshot-2.png671.01KB166.83KB▼ 75.14%
screenshot-1.png537.81KB147.52KB▼ 72.57%
includes/images/rezdy-icon.png3.56KB0.83KB▼ 76.60%