73% wijntransport

Code Review | Wijntransport

WordPress plugin Wijntransport scored 73% from 54 tests.

About plugin

  • Plugin page: wijntransport
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7
  • WordPress version: 6.3.1
  • First release: Aug 26, 2020
  • Latest release: Apr 12, 2021
  • Number of updates: 16
  • Update frequency: every 14.6 days
  • Top authors: wijntransport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 552 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.02ms] Passed 4 tests

A check of server-side resources used by Wijntransport
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.93 ▼0.71
Dashboard /wp-admin3.34 ▼0.0449.46 ▼20.33
Posts /wp-admin/edit.php3.39 ▲0.0444.55 ▼3.98
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.79 ▼11.05
Media Library /wp-admin/upload.php3.26 ▲0.0336.27 ▲1.61
Settings /wp-admin/admin.php?page=wijntransport-settings3.2529.77
Blocked products /wp-admin/admin.php?page=wijntransport-blocked-products3.31297.89

Server storage [IO: ▲0.44MB] [DB: ▲0.08MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 221 new files
Database: no new tables, 7 new options
New WordPress options
wijntransport_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Wijntransport
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲15513.35 ▼0.951.69 ▼0.0946.74 ▼1.58
Dashboard /wp-admin2,293 ▲1055.85 ▲0.9698.33 ▼11.2139.80 ▼3.57
Posts /wp-admin/edit.php2,179 ▲902.05 ▲0.0534.49 ▼4.8535.14 ▼10.61
Add New Post /wp-admin/post-new.php1,557 ▲2123.47 ▲0.14592.64 ▲15.5657.34 ▲3.89
Media Library /wp-admin/upload.php1,476 ▲884.37 ▲0.0996.20 ▼3.7243.79 ▲0.08
Settings /wp-admin/admin.php?page=wijntransport-settings9052.0426.6126.65
Blocked products /wp-admin/admin.php?page=wijntransport-blocked-products9742.0825.5535.28

Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 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 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • wijntransport_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=wijntransport-blocked-products
    • > Notice in wp-content/plugins/wijntransport/admin/partials/wijntransport-admin-block-options.php+29
    Undefined index: search

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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wijntransport/includes/class-wijntransport-ajax.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wijntransport/admin/partials/wijntransport-admin-options.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Wijntransport_API' not found in wp-content/plugins/wijntransport/admin/partials/wijntransport-admin-block-options.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Wijntransport_API' not found in wp-content/plugins/wijntransport/templates/wine-listing-template.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Wijntransport_API' not found in wp-content/plugins/wijntransport/templates/wine-single-template.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed: The official readme.txt might help

wijntransport/wijntransport.php Passed 13 tests

The primary PHP file in "Wijntransport" version 1.4.1 is used by WordPress to initiate all plugin functionality
65 characters long description:
Host a catalog of Wijntransport.com products on your own website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin4,054 lines of code in 209 files:
LanguageFilesBlank linesComment linesLines of code
CSS4299401,833
PHP172937421,283
PO File3159231407
JavaScript45825287
SVG18001199
YAML10045

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods53
▷ Static methods23.77%
▷ Public methods4890.57%
▷ Protected methods00.00%
▷ Private methods59.43%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/assets/images/product-placeholder.png10.17KB4.89KB▼ 51.97%