84% venio

Code Review | Venio

WordPress plugin Venio scored 84% from 54 tests.

About plugin

  • Plugin page: venio
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.9
  • WordPress version: 6.3.1
  • First release: Nov 15, 2021
  • Latest release: Mar 10, 2022
  • Number of updates: 5
  • Update frequency: every 23.6 days
  • Top authors: spyrit (80%)paulkarampournis (40%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 349 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼0.87ms] Passed 4 tests

An overview of server-side resources used by Venio
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1140.80 ▲1.35
Dashboard /wp-admin3.42 ▲0.1247.50 ▲1.75
Posts /wp-admin/edit.php3.54 ▲0.1853.88 ▲5.10
Add New Post /wp-admin/post-new.php6.00 ▲0.1285.54 ▼11.68
Media Library /wp-admin/upload.php3.34 ▲0.1239.53 ▲6.85

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Venio: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.27 ▼1.291.60 ▼0.0641.16 ▲0.75
Dashboard /wp-admin2,228 ▲405.83 ▼0.07108.79 ▼5.2173.27 ▲29.50
Posts /wp-admin/edit.php2,105 ▲162.01 ▲0.0036.33 ▼3.6534.53 ▼4.15
Add New Post /wp-admin/post-new.php1,685 ▲17122.63 ▲5.17770.83 ▲122.0950.67 ▲0.25
Media Library /wp-admin/upload.php1,401 ▲134.23 ▲0.03103.15 ▼2.0870.89 ▲27.49

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 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/venio/shortcodes/venio-events-shortcode.php:53
    • > PHP Fatal error
      Uncaught Error: Class 'VENIO\\Api' not found in wp-content/plugins/venio/templates/evenement-venio.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/venio/venio.php:32

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: events, venio

venio/venio.php Passed 13 tests

"Venio" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
56 characters long description:
Display Venio events directly on your WordPress website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,507 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP107050643
Sass211439
CSS234424
SVG1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity12.40
▷ Minimum class complexity2.00
▷ Maximum class complexity28.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods2681.25%
▷ Protected methods00.00%
▷ Private methods618.75%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo_venio_250x177.png7.12KB3.38KB▼ 52.48%