Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.36MB] [CPU: ▼5.15ms] Passed 4 tests
An overview of server-side resources used by WP Immo
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 27.57 ▼18.40 |
Dashboard /wp-admin | 3.86 ▲0.52 | 53.81 ▼9.19 |
Posts /wp-admin/edit.php | 3.91 ▲0.56 | 57.04 ▲3.96 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.52 | 99.29 ▲3.02 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 43.80 ▲5.17 |
WP Immo /wp-admin/options-general.php?page=wp-immo | 3.73 | 36.76 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please fix the following
- Illegal file modification found: 3 files (8.04KB) outside of "wp-content/plugins/wp-immo/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentyone/templates/wpimmo-taxonomy.php
- (new file) wp-content/themes/twentytwentyone/templates/wpimmo-list.php
- (new file) wp-content/themes/twentytwentyone/templates/wpimmo-property.php
Filesystem: 76 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_widget_wpimmo_group |
widget_theysaidso_widget |
widget_widget_wpimmo_last_properties |
wpimmo |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_widget_wpimmo_search |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Immo
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲101 | 13.39 ▼0.88 | 2.14 ▲0.19 | 43.09 ▼6.87 |
Dashboard /wp-admin | 2,239 ▲48 | 5.03 ▲0.16 | 106.62 ▼4.18 | 40.51 ▼0.07 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.28 ▲0.24 | 41.31 ▼0.75 | 36.82 ▲1.05 |
Add New Post /wp-admin/post-new.php | 1,541 ▲21 | 17.87 ▼5.12 | 641.18 ▲18.16 | 67.44 ▲17.63 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.34 ▲0.15 | 100.69 ▼1.75 | 42.25 ▼4.63 |
WP Immo /wp-admin/options-general.php?page=wp-immo | 1,660 | 2.06 | 40.33 | 29.59 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 10 options in the database
- db_upgraded
- widget_widget_wpimmo_last_properties
- widget_widget_wpimmo_group
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- wpimmo
- widget_recent-comments
- widget_widget_wpimmo_search
- widget_recent-posts
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
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-immo
- > Notice in wp-content/plugins/wp-immo/templates/admin/settings.php+106
Undefined index: action
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-immo
- > Notice in wp-content/plugins/wp-immo/templates/admin/tabs/main.php+85
Undefined index: external_feed
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPImmo' not found in wp-content/plugins/wp-immo/includes/wpimmo-admin.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-immo/templates/front/property.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-immo/includes/wpimmo-widgets.php:7
- > PHP Fatal error
Uncaught Error: Class 'WPImmo' not found in wp-content/plugins/wp-immo/includes/wpimmo-data.php:6
- > PHP Fatal error
Uncaught Error: Class 'WPImmo' not found in wp-content/plugins/wp-immo/default-data.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-immo/languages/infos.php:6
- > PHP Fatal error
Uncaught Error: Class 'WPImmo' not found in wp-content/plugins/wp-immo/includes/wpimmo-process.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-immo/templates/front/taxonomy.php:7
- > PHP Fatal error
Uncaught Error: Class 'WPImmo' not found in wp-content/plugins/wp-immo/includes/wpimmo-cron.php:6
- > PHP Fatal error
Uncaught Error: Class 'WPImmo' not found in wp-content/plugins/wp-immo/includes/wpimmo-tools.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: real estate software
wp-immo/wp-immo.php Passed 13 tests
The principal PHP file in "WP Immo" v. 1.1.4 is loaded by WordPress automatically on each request
37 characters long description:
Manage your real estate in WordPress.
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
Success! There were no dangerous files found in this plugin5,282 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 257 | 578 | 3,077 |
JavaScript | 8 | 317 | 263 | 909 |
CSS | 5 | 72 | 70 | 619 |
PO File | 1 | 255 | 611 | 543 |
SVG | 2 | 0 | 0 | 134 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 31.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 5.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 59 | 78.67% |
▷ Public methods | 75 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/jquery-ui/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png | 3.38KB | 1.68KB | ▼ 50.10% |
images/bkg_ges.png | 9.28KB | 3.53KB | ▼ 62.01% |
images/no-photo.png | 6.45KB | 2.18KB | ▼ 66.18% |
js/jquery-ui/redmond/images/ui-bg_flat_55_fbec88_40x100.png | 0.21KB | 0.08KB | ▼ 59.15% |
js/jquery-ui/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png | 0.12KB | 0.16KB | 0.00% |