10% tasador-de-autocaravanas

Code Review | Tasador de autocaravanas

WordPress plugin Tasador de autocaravanas scored10%from 54 tests.

About plugin

  • Plugin page: tasador-de-autoca...
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Apr 21, 2022
  • Latest release: May 19, 2022
  • Number of updates: 7
  • Update frequency: every 9.7 days
  • Top authors: staiapps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /559 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/tasador-de-autocaravanas/tasador-autocaravanas.php+98
    Function create_function() is deprecated

Server metrics [RAM: ▼1.97MB] [CPU: ▼58.67ms] Passed 4 tests

Analyzing server-side resources used by Tasador de autocaravanas
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.68 ▼35.82
Dashboard /wp-admin2.05 ▼1.305.18 ▼58.95
Posts /wp-admin/edit.php2.05 ▼1.315.48 ▼41.42
Add New Post /wp-admin/post-new.php2.05 ▼3.845.85 ▼98.50
Media Library /wp-admin/upload.php2.05 ▼1.186.03 ▼30.68

Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_tasador_autocaravanas_plugin
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Tasador de autocaravanas: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲14413.95 ▼0.409.88 ▲8.0148.70 ▲6.86
Dashboard /wp-admin2,198 ▲185.61 ▼0.0690.34 ▼0.7641.92 ▼5.77
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0843.98 ▲4.9936.50 ▼0.70
Add New Post /wp-admin/post-new.php1,534 ▲718.37 ▼4.66672.70 ▲17.0461.13 ▲9.00
Media Library /wp-admin/upload.php1,403 ▲34.29 ▲0.1596.80 ▼9.2542.08 ▼3.28

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/tasador-de-autocaravanas/tasador-autocaravanas.php+98
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_tasador_autocaravanas_plugin
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tasador-de-autocaravanas/tasador-autocaravanas.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: tasador de autocaravanas, tasador de vehculos, tasar autocaravanas

tasador-de-autocaravanas/tasador-autocaravanas.php 92% from 13 tests

This is the main PHP file of "Tasador de autocaravanas" version 1.5.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tasador-de-autocaravanas.php" instead of "tasador-autocaravanas.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,382 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4138162680
PHP23132501
CSS24319201

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.01
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin