Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/car-rental-widget-by-morerentalcarscom/index.php+36
Methods with the same name as their class will not be constructors in a future version of PHP; mrc_widget has a deprecated constructor
Server metrics [RAM: ▼1.93MB] [CPU: ▼54.58ms] Passed 4 tests
This is a short check of server-side resources used by Car Rental Widget by MoreRentalCars.com
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.25 ▼40.94 |
Dashboard /wp-admin | 2.08 ▼1.22 | 5.76 ▼50.62 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 6.03 ▼43.68 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 7.14 ▼83.08 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 6.26 ▼33.80 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_mrc_id |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Car Rental Widget by MoreRentalCars.com
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲162 | 13.59 ▼0.71 | 6.96 ▲5.06 | 38.71 ▼8.18 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼1.02 | 100.68 ▼20.30 | 42.00 ▼3.05 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.02 | 40.11 ▲0.61 | 33.39 ▼3.24 |
Add New Post /wp-admin/post-new.php | 1,514 ▼0 | 17.43 ▲0.01 | 658.66 ▲23.92 | 55.73 ▼4.72 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.17 ▼0.05 | 101.25 ▼5.76 | 43.73 ▼1.90 |
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 did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/car-rental-widget-by-morerentalcarscom/index.php+36
Methods with the same name as their class will not be constructors in a future version of PHP; mrc_widget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_mrc_id
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/car-rental-widget-by-morerentalcarscom/index.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (How the widget looks in my dev.), #2 (The search results provided through secure SSL connection.), #3 (Extra option provided during the booking process.), #4 (Collecting the user's information to process the reservation.), #5 (Collecting the payment details.)
car-rental-widget-by-morerentalcarscom/index.php 92% from 13 tests
Analyzing the main PHP file in "Car Rental Widget by MoreRentalCars.com" version 1.0.5
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("car-rental-widget-by-morerentalcarscom.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected61 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 23 | 42 |
CSS | 1 | 3 | 0 | 12 |
JavaScript | 1 | 0 | 1 | 7 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/imgs/newlogosml.png | 7.48KB | 3.15KB | ▼ 57.90% |