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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 41.13 ▼0.16 |
Dashboard /wp-admin | 3.65 ▲0.34 | 47.46 ▼0.55 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 49.32 ▲3.29 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 97.20 ▼4.10 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 35.99 ▼0.61 |
OwnerRez /wp-admin/options-general.php?page=ownerrez | 3.49 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲156 | 13.55 ▼0.85 | 8.21 ▲6.44 | 40.20 ▼8.76 |
Dashboard /wp-admin | 2,217 ▲29 | 4.88 ▼0.02 | 106.93 ▲3.34 | 41.81 ▲0.08 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.03 ▲0.04 | 40.37 ▲0.25 | 34.60 ▼1.64 |
Add New Post /wp-admin/post-new.php | 1,531 ▼2 | 18.62 ▼4.47 | 610.70 ▼46.76 | 46.41 ▼17.88 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.24 ▼0.01 | 95.62 ▼2.35 | 44.87 ▼0.09 |
OwnerRez /wp-admin/options-general.php?page=ownerrez | 841 | 2.04 | 24.11 | 39.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 139 | 2,257 | 6,708 | 9,746 |
Markdown | 13 | 1,138 | 0 | 3,467 |
JSON | 8 | 0 | 0 | 721 |
CSS | 2 | 29 | 17 | 202 |
JavaScript | 2 | 11 | 28 | 51 |
XML | 1 | 0 | 0 | 15 |
make | 1 | 4 | 0 | 9 |
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 code | 0.43 |
Average class complexity | 12.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 20 | |
Traits | 3 | |
Classes | 94 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 94 | 100.00% |
▷ Final classes | 22 | 23.40% |
Methods | 814 | |
▷ Static methods | 143 | 17.57% |
▷ Public methods | 687 | 84.40% |
▷ Protected methods | 6 | 0.74% |
▷ Private methods | 121 | 14.86% |
Functions | 151 | |
▷ Named functions | 58 | 38.41% |
▷ Anonymous functions | 93 | 61.59% |
Constants | 58 | |
▷ Global constants | 1 | 1.72% |
▷ Class constants | 57 | 98.28% |
▷ Public constants | 57 | 100.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