Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼139.45ms] Passed 4 tests
An overview of server-side resources used by Opal Estate Packages
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 46.52 ▲23.88 |
Dashboard /wp-admin | 3.07 ▲0.02 | 46.40 ▲1.01 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 49.89 ▲2.39 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 100.60 ▼563.53 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 38.15 ▲2.34 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Opal Estate Packages
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,706 ▲111 | 15.89 ▲0.33 | 10.14 ▼1.08 | 49.31 ▼6.62 |
Dashboard /wp-admin | 3,001 ▲70 | 5.98 ▼0.05 | 149.48 ▼3.18 | 132.10 ▲9.62 |
Posts /wp-admin/edit.php | 2,767 ▲28 | 2.73 ▲0.03 | 66.37 ▼2.78 | 98.54 ▲6.52 |
Add New Post /wp-admin/post-new.php | 1,701 ▲18 | 18.79 ▲0.05 | 394.39 ▼7.08 | 108.68 ▼9.77 |
Media Library /wp-admin/upload.php | 1,838 ▲28 | 5.01 ▼0.01 | 159.25 ▼10.27 | 124.87 ▼5.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Opalestate_Packages\\Core\\Query' not found in wp-content/plugins/opal-estate-packages/templates/packages.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/opal-estate-packages/templates/account/membership-warning.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/opal-estate-packages/loader.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/opal-estate-packages/inc/functions.php:167
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_product() in wp-content/plugins/opal-estate-packages/templates/content-package.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function opalestate_packages_is_unlimited_purchased() in wp-content/plugins/opal-estate-packages/templates/checkout/limited-purchased.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% 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
8 plugin tags: subscription, member, profile, membership, opalestate_addon...
opal-estate-packages/opal-estate-packages.php 85% from 13 tests
This is the main PHP file of "Opal Estate Packages" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "3.0.0")
- Description: Please keep the plugin description shorter than 140 characters (currently 166 characters long)
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
Good job! No executable or dangerous file extensions detected1,842 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 392 | 525 | 1,807 |
CSS | 1 | 7 | 0 | 34 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 14.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 10 | 10.42% |
▷ Public methods | 94 | 97.92% |
▷ Protected methods | 1 | 1.04% |
▷ Private methods | 1 | 1.04% |
Functions | 28 | |
▷ Named functions | 26 | 92.86% |
▷ Anonymous functions | 2 | 7.14% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin