Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/about-rentals/widget/apartment-widgets.php+223
Function create_function() is deprecated
Server metrics [RAM: ▼1.79MB] [CPU: ▼346.37ms] Passed 4 tests
Analyzing server-side resources used by About Rentals
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.58 ▼0.93 | 7.77 ▼47.90 |
Dashboard /wp-admin | 2.60 ▼0.81 | 12.50 ▼24.96 |
Posts /wp-admin/edit.php | 2.60 ▼1.04 | 10.49 ▼44.89 |
Add New Post /wp-admin/post-new.php | 2.60 ▼4.37 | 7.13 ▼1,267.72 |
Media Library /wp-admin/upload.php | 2.60 ▼0.69 | 7.18 ▼19.23 |
Server storage [IO: ▲4.89MB] [DB: ▲0.03MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 565 new files
Database: no new tables, 22 new options
New WordPress options |
---|
apartment_monthly_rent_children |
leasing_special_updated |
apartment_utilities_children |
community_location_children |
listing_bathrooms_children |
recovery_mode_email_last_sent |
apartment_bedrooms_children |
apartment_amenities_children |
widget_apartment_filters_widget |
apartment_rental_occupancy_children |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for About Rentals
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,091 ▲349 | 17.70 ▲2.09 | 22.24 ▲16.71 | 10.94 ▲8.75 |
Dashboard /wp-admin | 2,979 ▲119 | 6.65 ▲0.51 | 123.88 ▼1.61 | 203.26 ▲37.51 |
Posts /wp-admin/edit.php | 2,796 ▲102 | 3.37 ▲0.13 | 71.78 ▲11.17 | 164.54 ▲21.02 |
Add New Post /wp-admin/post-new.php | 45 ▼1,707 | 0.94 ▼20.03 | 0.03 ▼490.09 | 51.32 ▼109.04 |
Media Library /wp-admin/upload.php | 1,945 ▲247 | 6.22 ▲0.73 | 141.66 ▼20.23 | 209.67 ▲18.77 |
Uninstaller [IO: ▲0.72MB] [DB: ▲0.03MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/about-rentals/widget/apartment-widgets.php+223
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 22 options in the database
- apartment_bathrooms_children
- community_owner_children
- community_price_updated
- apartment_area_children
- apartment_leasing_children
- listing_bathrooms_children
- recovery_mode_email_last_sent
- apartment_monthly_rent_children
- listing_bedrooms_children
- community_location_children
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 67× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/about-rentals/cmb2/includes/types/CMB2_Type_Radio.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/about-rentals/admin/premium/realestate-listing.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/about-rentals/admin/premium/single-realestate.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/about-rentals/admin/single-community.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/about-rentals/admin/leasing-special-shortcode.php:60
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/about-rentals/cmb2/includes/types/CMB2_Type_Select.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-rentals/admin/ar-virtual-tours.php:177
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-rentals/admin/premium/availability-manager.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/about-rentals/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/about-rentals/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
about-rentals/about-rentals.php 92% from 13 tests
The main PHP file in "About Rentals" ver. 1.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin67,410 lines of code in 353 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 98 | 2,629 | 6,854 | 13,268 |
JavaScript | 76 | 2,603 | 2,352 | 12,012 |
CSS | 29 | 1,355 | 1,276 | 7,782 |
Sass | 16 | 300 | 25 | 1,378 |
JSON | 8 | 17 | 0 | 393 |
Markdown | 4 | 67 | 0 | 180 |
Bourne Shell | 1 | 24 | 0 | 55 |
SVG | 1 | 7 | 0 | 19 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 16.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 3.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 84 | |
▷ Abstract classes | 8 | 9.52% |
▷ Concrete classes | 76 | 90.48% |
▷ Final classes | 1 | 1.32% |
Methods | 672 | |
▷ Static methods | 116 | 17.26% |
▷ Public methods | 573 | 85.27% |
▷ Protected methods | 96 | 14.29% |
▷ Private methods | 3 | 0.45% |
Functions | 131 | |
▷ Named functions | 131 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 10 | 55.56% |
▷ Class constants | 8 | 44.44% |
▷ Public constants | 8 | 100.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
58 PNG files occupy 0.17MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
cmb2/add-on/date-range-field/assets/images/ui-bg_diagonals-thick_20_666666_40x40.png | 0.30KB | 0.15KB | ▼ 49.68% |
cmb2/add-on/date-range-field/assets/images/ui-bg_glass_100_fdf5ce_1x400.png | 0.34KB | 0.16KB | ▼ 54.02% |
img/am.png | 15.43KB | 0.19KB | ▼ 98.75% |
cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |