Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/realtor-express/includes/RexApp.php+65
Undefined index: rex-filter
Server metrics [RAM: ▼1.87MB] [CPU: ▼52.30ms] Passed 4 tests
An overview of server-side resources used by Realtor Express
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.34 | 5.01 ▼31.13 |
Dashboard /wp-admin | 2.15 ▼1.20 | 6.44 ▼54.81 |
Posts /wp-admin/edit.php | 2.15 ▼1.21 | 7.52 ▼38.38 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.74 | 10.31 ▼84.86 |
Media Library /wp-admin/upload.php | 2.15 ▼1.08 | 5.48 ▼27.44 |
Add New /wp-admin/post-new.php?post_type=rex_listing | 2.15 | 5.33 |
Documentation /wp-admin/edit.php?post_type=rex_listing&page=documentation | 2.15 | 6.64 |
All Listings /wp-admin/edit.php?post_type=rex_listing | 2.15 | 6.12 |
Listing Type /wp-admin/edit-tags.php?taxonomy=rex_listing_type&post_type=rex_listing | 2.15 | 6.08 |
Listing Style /wp-admin/edit-tags.php?taxonomy=rex_listing_style&post_type=rex_listing | 2.15 | 5.50 |
Settings /wp-admin/edit.php?post_type=rex_listing&page=settings | 2.15 | 6.32 |
Server storage [IO: ▲1.73MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 48 new files
Database: 1 new table, 12 new options
New tables |
---|
wp_rex_listings |
New WordPress options |
---|
rex_floor_space_units |
rex_listing_type_children |
theysaidso_admin_options |
rex_listing_style_children |
rex_version |
can_compress_scripts |
widget_theysaidso_widget |
widget_rex_multi_map_widget |
widget_rex_listing_filter_widget |
db_upgraded |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Realtor Express
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,057 ▲311 | 15.16 ▲0.81 | 14.05 ▲12.31 | 43.36 ▲2.84 |
Dashboard /wp-admin | 2,293 ▲119 | 5.70 ▲0.18 | 106.12 ▲18.47 | 44.94 ▲0.82 |
Posts /wp-admin/edit.php | 2,210 ▲110 | 2.73 ▲0.70 | 44.14 ▲2.63 | 32.85 ▼7.55 |
Add New Post /wp-admin/post-new.php | 1,581 ▲52 | 23.79 ▲0.73 | 685.61 ▲29.01 | 35.33 ▼19.90 |
Media Library /wp-admin/upload.php | 1,504 ▲107 | 5.13 ▲0.97 | 109.12 ▼0.10 | 42.10 ▼5.99 |
Add New /wp-admin/post-new.php?post_type=rex_listing | 3,105 | 8.06 | 191.80 | 69.89 |
Documentation /wp-admin/edit.php?post_type=rex_listing&page=documentation | 1,039 | 2.44 | 34.93 | 30.86 |
All Listings /wp-admin/edit.php?post_type=rex_listing | 1,156 | 2.61 | 41.49 | 31.08 |
Listing Type /wp-admin/edit-tags.php?taxonomy=rex_listing_type&post_type=rex_listing | 1,586 | 2.40 | 40.77 | 33.98 |
Listing Style /wp-admin/edit-tags.php?taxonomy=rex_listing_style&post_type=rex_listing | 1,537 | 2.41 | 39.13 | 32.27 |
Settings /wp-admin/edit.php?post_type=rex_listing&page=settings | 898 | 2.32 | 34.22 | 26.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/realtor-express/includes/RexApp.php+65
Undefined index: rex-filter
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_rex_listings
- The uninstall procedure has failed, leaving 12 options in the database
- widget_recent-posts
- rex_listing_type_children
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- rex_floor_space_units
- widget_recent-comments
- widget_rex_listing_filter_widget
- widget_rex_multi_map_widget
- rex_listing_style_children
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rex_listing&page=settings
- > Notice in wp-content/plugins/realtor-express/includes/RexApp.php+65
Undefined index: rex-filter
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rex_listing&page=settings
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method RexListingController::adminPagesCallback() should not be called statically
- > GET request to /wp-admin/post-new.php?post_type=rex_listing
- > Deprecated in wp-includes/class-wp-hook.php+312
Non-static method RexListingController::saveData() should not be called statically
- > GET request to /wp-admin/post-new.php?post_type=rex_listing
- > Notice in wp-content/plugins/realtor-express/controllers/RexListingController.php+23
Undefined index: rex_listing_info_nonce
- > GET request to /wp-admin/post-new.php?post_type=rex_listing
- > Deprecated in wp-includes/class-wp-hook.php+312
Non-static method RexListingController::addMetaBoxes() should not be called statically
- > GET request to /wp-admin/post-new.php?post_type=rex_listing
- > Deprecated in wp-admin/includes/template.php+1443
Non-static method RexListingController::listingInformationCallback() should not be called statically
- > GET request to /wp-admin/edit.php?post_type=rex_listing&page=documentation
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method RexListingController::docPageCallback() should not be called statically
SRP 50% 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
Please fix the following items
- 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/realtor-express/views/RexSettingsView.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/realtor-express/views/RexListingsLoopView.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/realtor-express/widgets/RexListingFilterWidget.php:6
- > PHP Notice
Undefined variable: locations_json_array in wp-content/plugins/realtor-express/views/RexShortcodeMultiMapView.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/realtor-express/views/RexListingContentView.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/realtor-express/views/RexAdminDocView.php:12
- > PHP Notice
Undefined variable: wrap_class in wp-content/plugins/realtor-express/views/RexAdminDocView.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/realtor-express/views/RexAdminListingView.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function home_url() in wp-content/plugins/realtor-express/views/RexWidgetListingFilterView.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/realtor-express/views/RexShortcodeGalleryView.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rex_listing&page=settings
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?sensor=false&ver=6.3.1 210:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rex_listing&page=settings
- > Network (severe)
wp-admin/undefined/plugins/lightbox/images/loading.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rex_listing&page=settings
- > Network (severe)
wp-admin/undefined/plugins/lightbox/images/close.png - Failed to load resource: the server responded with a status of 404 (Not Found)
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
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Listings Management), #2 (Single Listing Details), #3 (Listings View), #4 (Multi Map)
realtor-express/realtor.php 92% from 13 tests
The entry point to "Realtor Express" version 1.0.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("realtor-express.php" instead of "realtor.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin2,829 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 266 | 463 | 1,422 |
CSS | 4 | 84 | 169 | 905 |
JavaScript | 5 | 83 | 115 | 502 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 14.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 39 | 58.21% |
▷ Public methods | 66 | 98.51% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.49% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 1.20MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugins/lightbox/images/bg-checker.png | 0.93KB | 0.09KB | ▼ 90.00% |
screenshot-2.png | 216.27KB | 78.79KB | ▼ 63.57% |
plugins/lightbox/images/prev.png | 1.34KB | 1.59KB | 0.00% |
screenshot-3.png | 163.21KB | 54.62KB | ▼ 66.53% |
plugins/lightbox/images/next.png | 1.33KB | 1.58KB | 0.00% |