Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.06MB] [CPU: ▲9.21ms] Passed 4 tests
Server-side resources used by RealPress - Real Estate Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.54 ▲2.08 | 65.31 ▲24.30 |
Dashboard /wp-admin | 5.54 ▲2.20 | 68.61 ▲6.81 |
Posts /wp-admin/edit.php | 5.16 ▲1.81 | 47.13 ▼2.11 |
Add New Post /wp-admin/post-new.php | 8.41 ▲2.52 | 105.02 ▲7.82 |
Media Library /wp-admin/upload.php | 5.38 ▲2.15 | 63.82 ▲31.01 |
Status /wp-admin/edit-tags.php?taxonomy=realpress-status&post_type=realpress-property | 5.52 | 62.08 |
Label /wp-admin/edit-tags.php?taxonomy=realpress-label&post_type=realpress-property | 5.52 | 55.55 |
Location /wp-admin/edit-tags.php?taxonomy=realpress-location&post_type=realpress-property | 5.50 | 55.72 |
Feature /wp-admin/edit-tags.php?taxonomy=realpress-feature&post_type=realpress-property | 5.50 | 56.89 |
Type /wp-admin/edit-tags.php?taxonomy=realpress-type&post_type=realpress-property | 5.50 | 53.25 |
Settings /wp-admin/edit-tags.php?taxonomy=realpress-type&post_type=realpress-property&page=realpress-setting | 5.18 | 45.82 |
Energy Class /wp-admin/edit-tags.php?taxonomy=realpress-energy-class&post_type=realpress-property | 5.53 | 62.22 |
Server storage [IO: ▲15.15MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 611 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_realpress_mortgage_calculator |
db_upgraded |
can_compress_scripts |
widget_realpress_agent_search |
widget_realpress_property_list |
widget_recent-posts |
widget_theysaidso_widget |
widget_realpress-schedule-tour |
widget_realpress-contact-form |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
Checking browser requirements for RealPress - Real Estate Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲182 | 14.72 ▲0.31 | 7.00 ▲5.23 | 46.07 ▲6.77 |
Dashboard /wp-admin | 2,277 ▲97 | 5.69 ▲0.04 | 83.86 ▼1.88 | 82.45 ▲42.83 |
Posts /wp-admin/edit.php | 2,200 ▲100 | 2.26 ▲0.26 | 34.54 ▼4.45 | 35.90 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,600 ▲69 | 22.14 ▼1.01 | 684.07 ▲54.06 | 168.35 ▲115.33 |
Media Library /wp-admin/upload.php | 1,493 ▲96 | 4.41 ▲0.19 | 110.48 ▲6.07 | 81.46 ▲29.87 |
Status /wp-admin/edit-tags.php?taxonomy=realpress-status&post_type=realpress-property | 1,406 | 2.50 | 34.46 | 33.10 |
Label /wp-admin/edit-tags.php?taxonomy=realpress-label&post_type=realpress-property | 1,403 | 2.50 | 34.08 | 32.92 |
Location /wp-admin/edit-tags.php?taxonomy=realpress-location&post_type=realpress-property | 1,367 | 2.46 | 27.71 | 32.43 |
Feature /wp-admin/edit-tags.php?taxonomy=realpress-feature&post_type=realpress-property | 1,367 | 2.41 | 28.04 | 31.59 |
Type /wp-admin/edit-tags.php?taxonomy=realpress-type&post_type=realpress-property | 1,373 | 2.44 | 29.92 | 33.00 |
Settings /wp-admin/edit-tags.php?taxonomy=realpress-type&post_type=realpress-property&page=realpress-setting | 28 | 0.42 | 0.07 | 3.77 |
Energy Class /wp-admin/edit-tags.php?taxonomy=realpress-energy-class&post_type=realpress-property | 1,477 | 2.52 | 36.46 | 30.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 12 options in the database
- db_upgraded
- widget_realpress-term
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_realpress-schedule-tour
- theysaidso_admin_options
- widget_realpress_agent_search
- widget_realpress_mortgage_calculator
- widget_realpress_property_list
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/realpress/views/frontend/classic/shared/pagination/loadmore/wrapper.php
- > /wp-content/plugins/realpress/views/frontend/classic/shared/pagination/infinite-scroll/infinite-scroll.php
- > /wp-content/plugins/realpress/views/frontend/classic/shortcodes/property-map.php
- 132× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'RealPress\\Helpers\\Forms\\AbstractForm' not found in wp-content/plugins/realpress/app/Helpers/Forms/TaxonomyPostMeta.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/realpress/views/frontend/classic/single-property/content.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/realpress/views/admin/setup/steps/general.php:8
- > PHP Fatal error
Uncaught Error: Class 'RealPress\\Helpers\\Forms\\AbstractForm' not found in wp-content/plugins/realpress/app/Helpers/Forms/FloorPlan.php:6
- > PHP Fatal error
Uncaught Error: Class 'RealPress\\Helpers\\Template' not found in wp-content/plugins/realpress/views/frontend/classic/agent-detail/content.php:6
- > PHP Fatal error
Uncaught Error: Class 'RealPress\\Helpers\\Validation' not found in wp-content/plugins/realpress/views/frontend/classic/shortcodes/advanced-search/type.php:5
- > PHP Fatal error
Uncaught Error: Class 'RealPress\\Helpers\\Fields\\AbstractField' not found in wp-content/plugins/realpress/app/Helpers/Fields/FileUpload.php:5
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/realpress/config/widgets/terms.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/realpress/config/widgets/terms.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/realpress/views/admin/setup/steps/slug.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/edit-tags.php?taxonomy=realpress-type&post_type=realpress-property&page=realpress-setting
- > Network (severe)
wp-admin/edit-tags.php?taxonomy=realpress-type&post_type=realpress-property&page=realpress-setting - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Donate link: Invalid url: ""
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in realpress/assets to your readme.txt
realpress/realpress.php Passed 13 tests
The primary PHP file in "RealPress - Real Estate Plugin" version 1.0.6 is used by WordPress to initiate all plugin functionality
28 characters long description:
An useful Real Estate plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin154,383 lines of code in 545 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 48 | 22,031 | 24,178 | 102,567 |
PHP | 424 | 3,518 | 2,984 | 23,981 |
CSS | 65 | 3,112 | 269 | 23,833 |
XML | 1 | 10 | 20 | 3,537 |
JSON | 2 | 0 | 0 | 365 |
SVG | 2 | 0 | 0 | 75 |
Markdown | 1 | 5 | 0 | 21 |
HTML | 2 | 0 | 10 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 11.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 213.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 135 | |
▷ Abstract classes | 4 | 2.96% |
▷ Concrete classes | 131 | 97.04% |
▷ Final classes | 0 | 0.00% |
Methods | 766 | |
▷ Static methods | 121 | 15.80% |
▷ Public methods | 662 | 86.42% |
▷ Protected methods | 89 | 11.62% |
▷ Private methods | 15 | 1.96% |
Functions | 11 | |
▷ Named functions | 1 | 9.09% |
▷ Anonymous functions | 10 | 90.91% |
Constants | 37 | |
▷ Global constants | 33 | 89.19% |
▷ Class constants | 4 | 10.81% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dist/css/frontend/images/layers.png | 0.68KB | 1.05KB | 0.00% |
assets/dist/css/frontend/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
assets/dist/css/admin/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
assets/dist/css/frontend/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
assets/dist/css/admin/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |