84% vwe-voorraadlijst

Code Review | VWE - Voorheen Autodealers.nl

WordPress plugin VWE - Voorheen Autodealers.nl scored84%from 54 tests.

About plugin

  • Plugin page: vwe-voorraadlijst
  • Plugin version: 2.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.1-6.2
  • WordPress version: 6.3.1
  • First release: Mar 1, 2019
  • Latest release: Jun 14, 2023
  • Number of updates: 25
  • Update frequency: every 62.8 days
  • Top authors: vwewebsites (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /4,009 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.74ms] Passed 4 tests

A check of server-side resources used by VWE - Voorheen Autodealers.nl
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.04 ▼2.38
Dashboard /wp-admin3.39 ▲0.0948.45 ▼1.18
Posts /wp-admin/edit.php3.50 ▲0.1550.01 ▼1.10
Add New Post /wp-admin/post-new.php5.97 ▲0.0895.12 ▼6.31
Media Library /wp-admin/upload.php3.31 ▲0.0837.19 ▲1.83
Autodealers /wp-admin/options-general.php?page=VWE-plugin3.2832.06

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for VWE - Voorheen Autodealers.nl
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.22 ▼1.164.72 ▲2.9439.45 ▼7.23
Dashboard /wp-admin2,210 ▲254.84 ▼0.07110.74 ▲6.9140.31 ▼4.62
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0339.21 ▲1.7334.50 ▼2.28
Add New Post /wp-admin/post-new.php1,550 ▲3118.34 ▼5.08594.30 ▼85.0266.04 ▲8.85
Media Library /wp-admin/upload.php1,389 ▲14.19 ▼0.1299.06 ▲2.2641.60 ▼5.76
Autodealers /wp-admin/options-general.php?page=VWE-plugin8882.0225.6327.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/vwe-voorraadlijst/VWE.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: vwe, autodealers, voorraadmodule, stocklist, occasionlijst

vwe-voorraadlijst/VWE.php 85% from 13 tests

The primary PHP file in "VWE - Voorheen Autodealers.nl" version 2.1.8 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 269 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("vwe-voorraadlijst.php" instead of "VWE.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 plugin288 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP262135272
XML20016

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity23.50
▷ Minimum class complexity15.00
▷ Maximum class complexity32.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods311.11%
▷ Public methods2696.30%
▷ Protected methods00.00%
▷ Private methods13.70%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin