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 gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.75ms] Passed 4 tests
This is a short check of server-side resources used by Irdinmo para Inmovilla
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.10 ▼0.90 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.02 ▼0.55 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.36 ▼2.87 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 83.94 ▼5.94 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.38 ▼5.29 |
API Inmovilla /wp-admin/admin.php?page=irdinmo-para-inmovilla/admin/ird_inmo_opt_inmovilla.php | 3.24 | 34.13 |
Ird Inmo /wp-admin/admin.php?page=irdinmo-para-inmovilla/admin/ird_inmo_bienvenida.php | 3.22 | 28.56 |
General /wp-admin/admin.php?page=irdinmo-para-inmovilla/admin/ird_inmo_opt_general.php | 3.23 | 33.93 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Irdinmo para Inmovilla
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 14.47 ▲0.18 | 1.77 ▼0.24 | 39.11 ▼10.92 |
Dashboard /wp-admin | 2,234 ▲42 | 5.94 ▲0.97 | 96.97 ▼10.70 | 39.01 ▼1.61 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.06 ▲0.02 | 33.43 ▼7.36 | 33.91 ▼3.17 |
Add New Post /wp-admin/post-new.php | 1,575 ▲42 | 18.61 ▼4.47 | 598.77 ▼42.13 | 67.49 ▲17.59 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.21 ▼0.04 | 98.30 ▼28.46 | 43.11 ▼8.91 |
API Inmovilla /wp-admin/admin.php?page=irdinmo-para-inmovilla/admin/ird_inmo_opt_inmovilla.php | 969 | 2.03 | 22.71 | 28.22 |
Ird Inmo /wp-admin/admin.php?page=irdinmo-para-inmovilla/admin/ird_inmo_bienvenida.php | 816 | 2.18 | 24.03 | 35.91 |
General /wp-admin/admin.php?page=irdinmo-para-inmovilla/admin/ird_inmo_opt_general.php | 926 | 2.03 | 23.58 | 29.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/irdinmo-para-inmovilla/ird-inmo.php
- > /wp-content/plugins/irdinmo-para-inmovilla/admin/ird_inmo_bienvenida.php
- 15× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
include(): Failed opening 'IRDINMO_BASEadmin/ird_admutils.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/irdinmo-para-inmovilla/admin/ird_inmo_opt_inmovilla.php on line 2
- > PHP Warning
include(): Failed opening 'IRDINMO_BASEadmin/ird_admutils.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/irdinmo-para-inmovilla/admin/ird_inmo_opt_general.php on line 2
- > PHP Warning
include(IRDINMO_BASEadmin/ird_admutils.php): failed to open stream: No such file or directory in wp-content/plugins/irdinmo-para-inmovilla/admin/ird_inmo_opt_inmovilla.php on line 2
- > PHP Warning
include(): Failed opening 'IRDINMO_BASEincludes/ird_inmovilla.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/irdinmo-para-inmovilla/includes/ird_shortcodes.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function irdinmo_procesaOpciones() in wp-content/plugins/irdinmo-para-inmovilla/admin/ird_inmo_opt_inmovilla.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/irdinmo-para-inmovilla/includes/ird_shortcodes.php:302
- > PHP Warning
include(IRDINMO_BASEadmin/ird_admutils.php): failed to open stream: No such file or directory in wp-content/plugins/irdinmo-para-inmovilla/admin/ird_inmo_opt_general.php on line 2
- > PHP Warning
Use of undefined constant IRDINMO_BASE - assumed 'IRDINMO_BASE' (this will throw an Error in a future version of PHP) in wp-content/plugins/irdinmo-para-inmovilla/admin/ird_inmo_opt_inmovilla.php on line 2
- > PHP Warning
Use of undefined constant IRDINMO_BASE - assumed 'IRDINMO_BASE' (this will throw an Error in a future version of PHP) in wp-content/plugins/irdinmo-para-inmovilla/admin/ird_inmo_bienvenida.php on line 2
- > PHP Warning
include(): Failed opening 'IRDINMO_BASEadmin/ird_admutils.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/irdinmo-para-inmovilla/admin/ird_inmo_bienvenida.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: venta, terreno, apartamento, casa, piso...
irdinmo-para-inmovilla/ird-inmo.php 92% from 13 tests
"Irdinmo para Inmovilla" version 1.4.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("irdinmo-para-inmovilla.php" instead of "ird-inmo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,547 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 97 | 29 | 837 |
PHP | 10 | 215 | 19 | 708 |
JavaScript | 2 | 0 | 5 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
22 compressed PNG files occupy 0.24MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/icobaths.png | 3.25KB | 2.96KB | ▼ 8.96% |
public/assets/icosleep.png | 2.53KB | 2.23KB | ▼ 11.81% |
public/assets/icopropiedad.png | 2.77KB | 2.77KB | 0.00% |
public/assets/icohabs.png | 8.35KB | 5.49KB | ▼ 34.28% |
public/assets/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |