10% picklejar-live-for-artists-venues

Code Review | PickleJar Live for Artists & Venues

WordPress plugin PickleJar Live for Artists & Venues scored10%from 54 tests.

About plugin

  • Plugin page: picklejar-live-fo...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 30, 2023
  • Latest release: Mar 30, 2023
  • Number of updates: 2
  • Update frequency: every 3.5 days
  • Top authors: picklejar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /78 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-content/plugins/picklejar-live-for-artists-venues/vendor/composer/ClassLoader.php+483
    Use of undefined constant ClassLoader - assumed 'ClassLoader' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.53ms] Passed 4 tests

Analyzing server-side resources used by PickleJar Live for Artists & Venues
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.08 ▼3.90
Dashboard /wp-admin3.31 ▲0.0046.25 ▼3.76
Posts /wp-admin/edit.php3.36 ▲0.0045.31 ▼2.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.38 ▼11.51
Media Library /wp-admin/upload.php3.23 ▲0.0033.42 ▼1.41

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 101 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by PickleJar Live for Artists & Venues
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.321.68 ▼0.4143.21 ▼2.36
Dashboard /wp-admin2,206 ▲154.84 ▼0.06103.11 ▲0.0339.32 ▼6.02
Posts /wp-admin/edit.php2,086 ▼02.01 ▼0.0433.77 ▼2.5735.04 ▲1.10
Add New Post /wp-admin/post-new.php1,534 ▲123.16 ▲0.21631.44 ▼31.6550.82 ▼4.60
Media Library /wp-admin/upload.php1,388 ▼04.27 ▲0.1294.91 ▼19.1940.65 ▼8.02

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 6× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/picklejar-live-for-artists-venues/manager/artist-layout/partials/pj-render-artist-grid-layout-field.php
    • > /wp-content/plugins/picklejar-live-for-artists-venues/picklejar-live-for-artists-venues.php
    • > /wp-content/plugins/picklejar-live-for-artists-venues/includes/endpoints/login/pj-login-step-1.php
    • > /wp-content/plugins/picklejar-live-for-artists-venues/manager/events-layout/partials/pj-render-event-slider-layout-field.php
    • > /wp-content/plugins/picklejar-live-for-artists-venues/manager/events-layout/partials/pj-render-event-grid-layout-field.php
    • > /wp-content/plugins/picklejar-live-for-artists-venues/manager/artist-layout/partials/pj-render-artist-slider-layout-field.php
  • 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Picklejar\\Api\\Callbacks\\PJEventsPageCallbacks' not found in wp-content/plugins/picklejar-live-for-artists-venues/manager/events-layout/partials/pj-events-preview.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Picklejar\\Api\\Callbacks\\DashboardCallbacks' not found in wp-content/plugins/picklejar-live-for-artists-venues/manager/dashboard/pj-dashboard.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/picklejar-live-for-artists-venues/includes/endpoints/login/pj-login-step-4.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Picklejar\\Base\\BaseController' not found in wp-content/plugins/picklejar-live-for-artists-venues/includes/Base/PJEventsCustomPostTypeController.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/picklejar-live-for-artists-venues/includes/endpoints/login/pj-login-step-2.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_send_json() in wp-content/plugins/picklejar-live-for-artists-venues/includes/endpoints/login/pj-login-success.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Picklejar\\Api\\Callbacks\\PJArtistPageCallbacks' not found in wp-content/plugins/picklejar-live-for-artists-venues/manager/artist-layout/partials/pj-artist-preview.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/picklejar-live-for-artists-venues/templates/pj-artist-details-template.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Picklejar\\Api\\Callbacks\\PJEventsPageCallbacks' not found in wp-content/plugins/picklejar-live-for-artists-venues/manager/events-layout/pj-events-layout.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/picklejar-live-for-artists-venues/templates/pj-event-details-template.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: picklejar, artists, music

picklejar-live-for-artists-venues/picklejar-live-for-artists-venues.php 92% from 13 tests

The main file in "PickleJar Live for Artists & Venues" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.9")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin28,745 lines of code in 84 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript624335810,586
CSS41,2971498,693
PHP581,1453,8977,022
SVG12362,079
JSON100308
XML20032
PO File16525

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity22.26
▷ Minimum class complexity1.00
▷ Maximum class complexity164.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces10
Interfaces0
Traits0
Classes27
▷ Abstract classes00.00%
▷ Concrete classes27100.00%
▷ Final classes13.70%
Methods313
▷ Static methods3511.18%
▷ Public methods27989.14%
▷ Protected methods206.39%
▷ Private methods144.47%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants18
▷ Global constants00.00%
▷ Class constants18100.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
6 PNG files occupy 0.83MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/pj-logo-white.png7.97KB4.15KB▼ 48.00%
assets/images/avatar_img.png65.85KB72.40KB0.00%
assets/images/event_bg_img.png213.83KB234.26KB0.00%
assets/images/tipnowbutton.png209.74KB66.57KB▼ 68.26%
assets/images/tip-coming-soon.png348.59KB107.55KB▼ 69.15%