84% headliner-disco-free

Code Review | Disco Free by Headliner

WordPress plugin Disco Free by Headliner scored84%from 54 tests.

About plugin

  • Plugin page: headliner-disco-free
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: May 19, 2023
  • Latest release: Sep 5, 2023
  • Number of updates: 14
  • Update frequency: every 7.9 days
  • Top authors: neilmody (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /532 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼10.30ms] Passed 4 tests

A check of server-side resources used by Disco Free by Headliner
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.13 ▼2.19
Dashboard /wp-admin3.35 ▲0.0546.61 ▼1.98
Posts /wp-admin/edit.php3.47 ▲0.1142.62 ▼6.97
Add New Post /wp-admin/post-new.php5.95 ▲0.0778.85 ▼30.05
Media Library /wp-admin/upload.php3.27 ▲0.0533.76 ▼0.43
Headliner Disco Free /wp-admin/options-general.php?page=headliner3.2531.98

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

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

Browser metrics Passed 4 tests

Disco Free by Headliner: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.44 ▲0.101.88 ▲0.1645.00 ▼0.15
Dashboard /wp-admin2,201 ▲405.53 ▼0.0886.23 ▼10.3842.75 ▼0.50
Posts /wp-admin/edit.php2,106 ▲31.98 ▼0.0236.83 ▼10.3032.78 ▼6.33
Add New Post /wp-admin/post-new.php1,369 ▼15917.07 ▼5.89571.45 ▼72.0862.10 ▲3.76
Media Library /wp-admin/upload.php1,406 ▲64.19 ▼0.0596.75 ▼17.1543.85 ▼4.94
Headliner Disco Free /wp-admin/options-general.php?page=headliner8852.0323.8029.74

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

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
Good news, no errors were detected

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/headliner-disco-free/headliner.php:21

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: rss, video, podcast, audio

headliner-disco-free/headliner.php 85% from 13 tests

Analyzing the main PHP file in "Disco Free by Headliner" version 1.3.0
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("headliner-disco-free.php" instead of "headliner.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin242 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16665211
JavaScript172131

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin