78% irdinmo-para-inmovilla

Code Review | Irdinmo para Inmovilla

WordPress plugin Irdinmo para Inmovilla scored78%from 54 tests.

About plugin

  • Plugin page: irdinmo-para-inmo...
  • Plugin version: 1.4.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 25, 2022
  • Latest release: Jul 18, 2023
  • Number of updates: 9
  • Update frequency: every 59.9 days
  • Top authors: inforrada (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /760 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.10 ▼0.90
Dashboard /wp-admin3.31 ▲0.0146.02 ▼0.55
Posts /wp-admin/edit.php3.36 ▲0.0144.36 ▼2.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.94 ▼5.94
Media Library /wp-admin/upload.php3.23 ▲0.0032.38 ▼5.29
API Inmovilla /wp-admin/admin.php?page=irdinmo-para-inmovilla/admin/ird_inmo_opt_inmovilla.php3.2434.13
Ird Inmo /wp-admin/admin.php?page=irdinmo-para-inmovilla/admin/ird_inmo_bienvenida.php3.2228.56
General /wp-admin/admin.php?page=irdinmo-para-inmovilla/admin/ird_inmo_opt_general.php3.2333.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9614.47 ▲0.181.77 ▼0.2439.11 ▼10.92
Dashboard /wp-admin2,234 ▲425.94 ▲0.9796.97 ▼10.7039.01 ▼1.61
Posts /wp-admin/edit.php2,120 ▲312.06 ▲0.0233.43 ▼7.3633.91 ▼3.17
Add New Post /wp-admin/post-new.php1,575 ▲4218.61 ▼4.47598.77 ▼42.1367.49 ▲17.59
Media Library /wp-admin/upload.php1,422 ▲344.21 ▼0.0498.30 ▼28.4643.11 ▼8.91
API Inmovilla /wp-admin/admin.php?page=irdinmo-para-inmovilla/admin/ird_inmo_opt_inmovilla.php9692.0322.7128.22
Ird Inmo /wp-admin/admin.php?page=irdinmo-para-inmovilla/admin/ird_inmo_bienvenida.php8162.1824.0335.91
General /wp-admin/admin.php?page=irdinmo-para-inmovilla/admin/ird_inmo_opt_general.php9262.0323.5829.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

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:
LanguageFilesBlank linesComment linesLines of code
CSS39729837
PHP1021519708
JavaScript2052

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 code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
public/assets/icobaths.png3.25KB2.96KB▼ 8.96%
public/assets/icosleep.png2.53KB2.23KB▼ 11.81%
public/assets/icopropiedad.png2.77KB2.77KB0.00%
public/assets/icohabs.png8.35KB5.49KB▼ 34.28%
public/assets/marker-shadow.png0.60KB1.16KB0.00%