78% ownerrez

Code Review | OwnerRez

WordPress plugin OwnerRez scored 78% from 54 tests.

About plugin

  • Plugin page: ownerrez
  • Plugin version: 1.1.18
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.0.0
  • WordPress version: 6.3.1
  • First release: Dec 14, 2020
  • Latest release: Jun 21, 2023
  • Number of updates: 33
  • Update frequency: every 27.9 days
  • Top authors: ownerrez (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 4,392 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.32MB] [CPU: ▼1.36ms] Passed 4 tests

An overview of server-side resources used by OwnerRez
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3541.13 ▼0.16
Dashboard /wp-admin3.65 ▲0.3447.46 ▼0.55
Posts /wp-admin/edit.php3.70 ▲0.3449.32 ▲3.29
Add New Post /wp-admin/post-new.php6.19 ▲0.3097.20 ▼4.10
Media Library /wp-admin/upload.php3.51 ▲0.2835.99 ▼0.61
OwnerRez /wp-admin/options-general.php?page=ownerrez3.4934.11

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for OwnerRez
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲15613.55 ▼0.858.21 ▲6.4440.20 ▼8.76
Dashboard /wp-admin2,217 ▲294.88 ▼0.02106.93 ▲3.3441.81 ▲0.08
Posts /wp-admin/edit.php2,097 ▲82.03 ▲0.0440.37 ▲0.2534.60 ▼1.64
Add New Post /wp-admin/post-new.php1,531 ▼218.62 ▼4.47610.70 ▼46.7646.41 ▼17.88
Media Library /wp-admin/upload.php1,396 ▲84.24 ▼0.0195.62 ▼2.3544.87 ▼0.09
OwnerRez /wp-admin/options-general.php?page=ownerrez8412.0424.1139.02

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

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)
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ownerrez/public/partials/ownerrez-display.php
  • 56× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/ownerrez/lib/guzzlehttp/promises/src/FulfilledPromise.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/ownerrez/lib/guzzlehttp/guzzle/src/Exception/TransferException.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/ownerrez/lib/guzzlehttp/guzzle/src/Exception/ServerException.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'OwnerRez\\Api\\Glue\\ResourceBase' not found in wp-content/plugins/ownerrez/lib/ownerrez/orez-api/src/resources/Bookings.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/ownerrez/lib/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/ownerrez/lib/guzzlehttp/guzzle/src/Exception/RequestException.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/ownerrez/lib/guzzlehttp/psr7/src/AppendStream.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/ownerrez/lib/guzzlehttp/promises/src/AggregateException.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/ownerrez/lib/guzzlehttp/guzzle/src/Exception/ClientException.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/ownerrez/lib/guzzlehttp/guzzle/src/Exception/BadResponseException.php:11

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

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === ownerrez === )
  • Tags: No valid plugin tags found
The official readme.txt is a good inspiration

ownerrez/ownerrez.php Passed 13 tests

This is the main PHP file of "OwnerRez" version 1.1.18, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
51 characters long description:
The official WordPress plugin for the OwnerRez API.

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
There were no executable files found in this plugin14,211 lines of code in 166 files:
LanguageFilesBlank linesComment linesLines of code
PHP1392,2576,7089,746
Markdown131,13803,467
JSON800721
CSS22917202
JavaScript2112851
XML10015
make1409

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity12.39
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces13
Interfaces20
Traits3
Classes94
▷ Abstract classes00.00%
▷ Concrete classes94100.00%
▷ Final classes2223.40%
Methods814
▷ Static methods14317.57%
▷ Public methods68784.40%
▷ Protected methods60.74%
▷ Private methods12114.86%
Functions151
▷ Named functions5838.41%
▷ Anonymous functions9361.59%
Constants58
▷ Global constants11.72%
▷ Class constants5798.28%
▷ Public constants57100.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