Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/immobilcio-agenzie-immobiliari/index.php+767
Methods with the same name as their class will not be constructors in a future version of PHP; ciowidget has a deprecated constructor
Server metrics [RAM: ▼1.60MB] [CPU: ▼51.18ms] Passed 4 tests
This is a short check of server-side resources used by ImmobilCIO
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.39 ▼1.07 | 5.11 ▼37.01 |
Dashboard /wp-admin | 2.41 ▼0.89 | 6.03 ▼44.95 |
Posts /wp-admin/edit.php | 2.41 ▼0.95 | 6.74 ▼36.84 |
Add New Post /wp-admin/post-new.php | 2.41 ▼3.48 | 7.34 ▼85.91 |
Media Library /wp-admin/upload.php | 2.41 ▼0.82 | 7.53 ▼27.49 |
Prices /wp-admin/edit-tags.php?taxonomy=price&post_type=singlehome | 2.41 | 6.84 |
Property /wp-admin/edit.php?post_type=singlehome | 2.41 | 7.68 |
Zone /wp-admin/edit-tags.php?taxonomy=zone&post_type=singlehome | 2.41 | 6.02 |
Type /wp-admin/edit-tags.php?taxonomy=type&post_type=singlehome | 2.41 | 7.61 |
Add New /wp-admin/post-new.php?post_type=singlehome | 2.41 | 6.13 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 54 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_ciowidget |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ImmobilCIO
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲150 | 14.00 ▼0.62 | 23.86 ▲22.03 | 37.36 ▼7.83 |
Dashboard /wp-admin | 2,263 ▲75 | 5.86 ▲0.84 | 95.76 ▼22.62 | 65.44 ▲22.83 |
Posts /wp-admin/edit.php | 2,146 ▲57 | 1.99 ▼0.02 | 38.70 ▲3.20 | 35.38 ▲4.28 |
Add New Post /wp-admin/post-new.php | 1,731 ▲198 | 24.37 ▲1.06 | 606.78 ▲25.10 | 69.95 ▲23.50 |
Media Library /wp-admin/upload.php | 1,445 ▲63 | 4.13 ▼0.11 | 96.95 ▼4.32 | 47.70 ▲3.66 |
Prices /wp-admin/edit-tags.php?taxonomy=price&post_type=singlehome | 1,313 | 2.15 | 24.50 | 29.34 |
Property /wp-admin/edit.php?post_type=singlehome | 1,147 | 1.95 | 32.17 | 26.90 |
Zone /wp-admin/edit-tags.php?taxonomy=zone&post_type=singlehome | 1,316 | 2.13 | 24.38 | 30.65 |
Type /wp-admin/edit-tags.php?taxonomy=type&post_type=singlehome | 1,319 | 2.15 | 24.99 | 28.55 |
Add New /wp-admin/post-new.php?post_type=singlehome | 3,128 | 8.02 | 185.04 | 153.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/immobilcio-agenzie-immobiliari/index.php+767
Methods with the same name as their class will not be constructors in a future version of PHP; ciowidget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_ciowidget
- widget_recent-comments
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
These server-side errors were triggered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=singlehome
- > Deprecated in wp-content/plugins/immobilcio-agenzie-immobiliari/index.php+767
Methods with the same name as their class will not be constructors in a future version of PHP; ciowidget has a deprecated constructor
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/immobilcio-agenzie-immobiliari/index.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/immobilcio-agenzie-immobiliari/init.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/immobilcio-agenzie-immobiliari/admin/panel.php:3
- > 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/post-new.php?post_type=singlehome
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,thickbox,shortcode,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/immobilcio-agenzie-immobiliari/js/cmb.js?ver=0.9.1:68:26)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,thickbox,shortcode,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,thickbox,shortcode,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=singlehome
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,thickbox,shortcode,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: widget, real estate, metabox, agenzie immobiliari, geolocalization...
immobilcio-agenzie-immobiliari/index.php 92% from 13 tests
The primary PHP file in "ImmobilCIO" version 0.8.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("immobilcio-agenzie-immobiliari.php" instead of "index.php")
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 plugin2,321 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 279 | 282 | 1,520 |
CSS | 2 | 11 | 16 | 417 |
PO File | 1 | 96 | 96 | 239 |
JavaScript | 3 | 27 | 67 | 145 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 47.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 8.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 93.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
39 PNG files occupy 0.73MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/linkedin.png | 4.90KB | 1.86KB | ▼ 62.03% |
images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/lib/images/pointer.png | 1.16KB | 1.25KB | 0.00% |
screenshot-2.png | 51.69KB | 12.53KB | ▼ 75.77% |
images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |