78% joan

Code Review | Jock on air now

WordPress plugin Jock on air now scored78%from 54 tests.

About plugin

  • Plugin page: joan
  • Plugin version: 5.7.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.4
  • WordPress version: 6.3.1
  • First release: Dec 4, 2015
  • Latest release: Nov 25, 2023
  • Number of updates: 270
  • Update frequency: every 10.8 days
  • Top authors: ganddser (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

900+ active /37,394 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.27ms] Passed 4 tests

This is a short check of server-side resources used by Jock on air now
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.92 ▼1.19
Dashboard /wp-admin3.33 ▲0.0243.42 ▼5.34
Posts /wp-admin/edit.php3.38 ▲0.0247.62 ▲4.91
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.87 ▼8.40
Media Library /wp-admin/upload.php3.25 ▲0.0230.72 ▼2.15

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: 1 new table, 13 new options
New tables
wp_WPJoan
New WordPress options
widget_recent-posts
widget_theysaidso_widget
joan_css
off_air_message
theysaidso_admin_options
joan_shutitdown
widget_recent-comments
joan_db_version
widget_joan
can_compress_scripts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Jock on air now
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲17813.41 ▼1.3010.56 ▲8.8737.21 ▼6.78
Dashboard /wp-admin2,214 ▲365.62 ▼0.0092.94 ▼8.4541.14 ▼0.75
Posts /wp-admin/edit.php2,119 ▲192.01 ▼0.0237.99 ▼0.9736.83 ▼1.20
Add New Post /wp-admin/post-new.php1,542 ▲723.82 ▲5.46676.47 ▲21.0255.26 ▼7.19
Media Library /wp-admin/upload.php1,416 ▲194.15 ▼0.0293.22 ▼8.1641.18 ▼1.75

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 12 options
    • joan_use_images
    • joan_upcoming
    • joan_shutitdown
    • widget_joan
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • off_air_message
    • joan_css
    • db_upgraded
    • ...

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
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/joan/joan.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined index: crud-action in wp-content/plugins/joan/crud.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: radio jock, webcast, programming, manager, dj...

joan/joan.php 92% from 13 tests

Analyzing the main PHP file in "Jock on air now" version 5.7.2
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 337 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,184 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2218144812
JavaScript214836259
CSS1280113

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity2.50
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods880.00%
▷ Protected methods220.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin