77% open-rdw-kenteken-voertuiginformatie

Code Review | Open RDW kenteken voertuiginformatie

WordPress plugin Open RDW kenteken voertuiginformatie scored77%from 54 tests.

About plugin

  • Plugin page: open-rdw-kenteken...
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0
  • WordPress version: 6.3.1
  • First release: May 12, 2014
  • Latest release: Mar 16, 2023
  • Number of updates: 45
  • Update frequency: every 71.8 days
  • Top authors: Tussendoor (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /11,147 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼5.32ms] Passed 4 tests

Analyzing server-side resources used by Open RDW kenteken voertuiginformatie
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1341.02 ▲5.42
Dashboard /wp-admin3.44 ▲0.1049.28 ▼10.49
Posts /wp-admin/edit.php3.54 ▲0.1845.96 ▲1.82
Add New Post /wp-admin/post-new.php6.03 ▲0.1486.69 ▼13.33
Media Library /wp-admin/upload.php3.37 ▲0.1434.41 ▲0.73

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

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

Browser metrics Passed 4 tests

Open RDW kenteken voertuiginformatie: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,056 ▲31013.64 ▼0.795.84 ▲4.0242.89 ▲1.48
Dashboard /wp-admin2,364 ▲1734.96 ▼0.94107.35 ▲1.6180.91 ▲36.02
Posts /wp-admin/edit.php2,271 ▲1822.05 ▲0.0634.72 ▼3.4832.96 ▼4.28
Add New Post /wp-admin/post-new.php1,699 ▲17523.20 ▼0.07792.08 ▲149.2459.65 ▲5.47
Media Library /wp-admin/upload.php1,561 ▲1704.24 ▲0.03101.21 ▲3.2681.94 ▲37.81

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_open_rdw_widget
    • widget_recent-posts
    • 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 no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/open-rdw-kenteken-voertuiginformatie/admin/partials/open-rdw-kenteken-voertuiginformatie-admin-getting-started.php
  • 31× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ORK_PLUGIN_PATH - assumed 'ORK_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/open-rdw-kenteken-voertuiginformatie/admin/partials/open-rdw-kenteken-voertuiginformatie-admin-getting-started.php on line 58
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/open-rdw-kenteken-voertuiginformatie/public/partials/open-rdw-kenteken-voertuiginformatie-public-display.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/open-rdw-kenteken-voertuiginformatie/includes/open-rdw-kenteken-voertuiginformatie-fields.php:9
    • > PHP Warning
      Use of undefined constant ORK_PLUGIN_PATH - assumed 'ORK_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/open-rdw-kenteken-voertuiginformatie/admin/partials/open-rdw-kenteken-voertuiginformatie-admin-getting-started.php on line 73
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/open-rdw-kenteken-voertuiginformatie/public/partials/open-rdw-kenteken-voertuiginformatie-public-display.php on line 19
    • > PHP Notice
      Undefined variable: after_title in wp-content/plugins/open-rdw-kenteken-voertuiginformatie/views/frontend/widget.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/open-rdw-kenteken-voertuiginformatie/views/admin/about.php:3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/open-rdw-kenteken-voertuiginformatie/public/partials/open-rdw-kenteken-voertuiginformatie-public-display.php on line 16
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/open-rdw-kenteken-voertuiginformatie/includes/class-open-rdw-kenteken-voertuiginformatie-widget.php:8
    • > PHP Warning
      Use of undefined constant ORK_PLUGIN_PATH - assumed 'ORK_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/open-rdw-kenteken-voertuiginformatie/admin/partials/open-rdw-kenteken-voertuiginformatie-admin-getting-started.php on line 76

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Standaard instellingen scherm Open RDW - Informatie over integraties), #2 (Instellingen scherm met optie op API key aan te vragen voor Open RDW), #3 (Voorbeeldscherm Contact Form 7 integratie bij Open RDW plugin), #4 (Voorbeelscherm Widgets voor het integreren van kentekeninformatie via een widget / sidebar), #5 (Voorbeeldscherm (stap 1) voor de shortcode invoer binnen de WYSIWYG editor), #6 (Voorbeeldscherm (stap 2) voor de shortcode invoer binnen de WYSIWYG editor)
You can look at the official readme.txt

open-rdw-kenteken-voertuiginformatie/open-rdw-kenteken-voertuiginformatie.php 92% from 13 tests

Analyzing the main PHP file in "Open RDW kenteken voertuiginformatie" version 2.1.0
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,840 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP252975141,546
CSS41232652
PO File1172284391
JavaScript76327251

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity4.70
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.76
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods49
▷ Static methods24.08%
▷ Public methods4387.76%
▷ Protected methods00.00%
▷ Private methods612.24%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
26 PNG files occupy 4.53MB with 2.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
resources/warning-icon.png0.62KB0.62KB0.00%
resources/background.png0.50KB0.26KB▼ 48.14%
admin/images/widget_nl.png1,081.24KB18.53KB▼ 98.29%
public/images/stap1-installation.png114.34KB34.75KB▼ 69.61%
resources/uitleg-cf.png23.35KB11.78KB▼ 49.54%