Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.94MB] [CPU: ▼38.58ms] Passed 4 tests
An overview of server-side resources used by RENTAL
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 24.41 ▼16.34 |
Dashboard /wp-admin | 3.01 ▼0.33 | 29.16 ▼28.88 |
Posts /wp-admin/edit.php | 3.01 ▼0.34 | 22.09 ▼30.45 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.87 | 22.69 ▼78.48 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 21.98 ▼16.50 |
My Clients /wp-admin/admin.php?page=my-client | 3.01 | 22.07 |
All Rental /wp-admin/admin.php?page=all-rental | 3.01 | 21.27 |
Create rental /wp-admin/admin.php?page=custom-plugin2 | 3.01 | 22.83 |
RENTAL /wp-admin/admin.php?page=rental | 3.01 | 22.12 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_rentaldata |
wp_checkavailabity |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for RENTAL
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,085 ▲324 | 15.03 ▲0.70 | 12.56 ▲11.01 | 47.98 ▲5.48 |
Dashboard /wp-admin | 2,374 ▲194 | 6.17 ▲0.51 | 104.75 ▲17.47 | 39.78 ▼0.95 |
Posts /wp-admin/edit.php | 2,302 ▲202 | 3.39 ▲1.39 | 49.36 ▲11.24 | 32.54 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,714 ▲188 | 22.23 ▼0.87 | 636.44 ▼14.32 | 37.88 ▼24.18 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.15 ▼0.04 | 81.34 ▼17.84 | 47.37 ▲5.44 |
My Clients /wp-admin/admin.php?page=my-client | 1,014 | 3.02 | 40.32 | 26.61 |
All Rental /wp-admin/admin.php?page=all-rental | 1,118 | 3.22 | 41.03 | 26.38 |
Create rental /wp-admin/admin.php?page=custom-plugin2 | 1,277 | 3.16 | 39.50 | 29.83 |
RENTAL /wp-admin/admin.php?page=rental | 1,124 | 3.07 | 39.89 | 29.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rental
- > User notice in wp-includes/functions.php+5905
Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rental
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rental
- > Notice in wp-content/plugins/rental/views/all-pages.php+82
Undefined index: editid
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rental
- > Notice in wp-content/plugins/rental/views/all-pages.php+209
Undefined variable: features2
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rental
- > Notice in wp-content/plugins/rental/views/all-pages.php+213
Undefined variable: featureArr
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rental
- > Warning in wp-content/plugins/rental/views/all-pages.php+213
sizeof(): Parameter must be an array or an object that implements Countable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rental
- > Notice in wp-content/plugins/rental/views/all-pages.php+225
Undefined variable: descriptions2
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rental
- > Notice in wp-content/plugins/rental/views/all-pages.php+236
Undefined variable: id
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
Almost there! Just fix the following items
- 7× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/rental/views/imageslider.php
- > /wp-content/plugins/rental/rental.php
- > /wp-content/plugins/rental/views/popup.php
- > /wp-content/plugins/rental/views/Myclient.php
- > /wp-content/plugins/rental/index.php
- > /wp-content/plugins/rental/views/all-pages.php
- > /wp-content/plugins/rental/views/datasubmit.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Contributors: The plugin contributors field is not present
- Screenshots: Add images for these screenshots: #1 (This is the screenshot of admin section of Rental plugin (Screenshot-1.png).), #2 (This is the screenshot of admin section when we select images for slider and features ( Screenshot-2.png).), #3 (This is the screenshot of filling the information in rental plugin (Screenshot-3.png).), #4 (This is the screenshot of Adding multiple featues (Screenshot-4.png).), #5 (This is the screenshot of decription section of rental plugin (Screenshot-5.png).), #6 (This is the screenshot of post type view of rental plugin (Screenshot-6.png).), #7 (This is the screenshot of main page of rental plugin here you will see your rental products (Screenshot-7.png).), #8 (This is the screenshot of here you will see the Slider of rental plugin-8.png).)
rental/rental.php 92% from 13 tests
"RENTAL" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.6" instead of "5.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected2,164 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 218 | 39 | 1,232 |
CSS | 3 | 164 | 116 | 774 |
JavaScript | 3 | 50 | 21 | 158 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 14 | 87.50% |
▷ Anonymous functions | 2 | 12.50% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/featuredimg.png | 26.95KB | 9.36KB | ▼ 65.26% |