84% list-mixcloud

Code Review | List Mixcloud

WordPress plugin List Mixcloud scored 84% from 54 tests.

About plugin

  • Plugin page: list-mixcloud
  • Plugin version: 1.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7.0-5.8.1
  • WordPress version: 5.8.1
  • First release: Jun 21, 2018
  • Latest release: Oct 19, 2021
  • Number of updates: 12
  • Update frequency: every 101.3 days
  • Top authors: shmuel83 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

800+ active / 5,062 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
Install script ran successfully

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

An overview of server-side resources used by List Mixcloud
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1836.61 ▲15.16
Dashboard /wp-admin3.12 ▲0.0647.20 ▲4.40
Posts /wp-admin/edit.php3.17 ▲0.0644.06 ▲1.43
Add New Post /wp-admin/post-new.php5.47 ▲0.0487.81 ▼565.15
Media Library /wp-admin/upload.php3.06 ▲0.0532.69 ▼1.55

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options
widget_mixcloud

Browser metrics Passed 4 tests

A check of browser resources used by List Mixcloud
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,823 ▲22717.21 ▲1.5325.53 ▲15.4551.45 ▲2.48
Dashboard /wp-admin2,980 ▲496.22 ▲0.28150.80 ▲10.99110.06 ▼8.31
Posts /wp-admin/edit.php2,745 ▲62.72 ▲0.0164.24 ▼1.6184.95 ▼2.15
Add New Post /wp-admin/post-new.php1,878 ▲37819.16 ▲0.39383.36 ▲10.1199.59 ▼5.85
Media Library /wp-admin/upload.php1,813 ▲65.03 ▲0.00154.75 ▲4.39117.47 ▲4.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_mixcloud

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/list-mixcloud/list-mixcloud.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: There are too many tags (14 tag instead of maximum 10)
You can take inspiration from this readme.txt

list-mixcloud/list-mixcloud.php Passed 13 tests

"List Mixcloud" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
50 characters long description:
Show list or last podcast MixCloud of your channel

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
There were no executable files found in this plugin7,154 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript41,9911,8136,866
PHP12730206
CSS212282

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants1
▷ Global constants1100.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