84% tasador-de-coches

Code Review | Tasador de coches

WordPress plugin Tasador de coches scored84%from 54 tests.

About plugin

  • Plugin page: tasador-de-coches
  • Plugin version: 1.7.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Jan 11, 2017
  • Latest release: Nov 15, 2022
  • Number of updates: 33
  • Update frequency: every 64.6 days
  • Top authors: staiapps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,041 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼10.60ms] Passed 4 tests

A check of server-side resources used by Tasador de coches
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0839.86 ▼7.55
Dashboard /wp-admin3.42 ▲0.0354.44 ▼17.39
Posts /wp-admin/edit.php3.53 ▲0.1348.67 ▼7.19
Add New Post /wp-admin/post-new.php6.00 ▲0.0799.97 ▼10.25
Media Library /wp-admin/upload.php3.34 ▲0.0739.98 ▲3.25

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_tasador_coches_plugin
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Tasador de coches
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲13213.53 ▼0.8210.64 ▲8.7341.03 ▼2.48
Dashboard /wp-admin2,195 ▲215.54 ▼0.0298.11 ▼3.9042.91 ▼2.75
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0435.40 ▼0.8633.09 ▼1.87
Add New Post /wp-admin/post-new.php1,526 ▼223.31 ▲0.30671.47 ▼32.5556.59 ▼2.53
Media Library /wp-admin/upload.php1,397 ▼64.21 ▲0.03112.11 ▲5.7149.83 ▲3.82

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_tasador_coches_plugin
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tasador-de-coches/tasador-coches.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
3 plugin tags: tasador de vehculos, tasar coches, tasador de coches

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

The primary PHP file in "Tasador de coches" version 1.7.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tasador-de-coches.php" instead of "tasador-coches.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,435 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4141102736
PHP23133512
CSS24219187

PHP code Passed 2 tests

Analyzing 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%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.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
There were not PNG files found in your plugin