74% fyyd-podcast-shortcodes

Code Review | fyyd podcast shortcodes

WordPress plugin fyyd podcast shortcodes scored74%from 54 tests.

About plugin

  • Plugin page: fyyd-podcast-shor...
  • Plugin version: 0.3.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2
  • WordPress version: 6.3.1
  • First release: Jul 5, 2019
  • Latest release: Jan 31, 2020
  • Number of updates: 30
  • Update frequency: every 20.2 days
  • Top authors: c.bednarek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,070 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼1.89MB] [CPU: ▼54.90ms] Passed 4 tests

Analyzing server-side resources used by fyyd podcast shortcodes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.79 ▼36.59
Dashboard /wp-admin2.11 ▼1.196.36 ▼48.15
Posts /wp-admin/edit.php2.12 ▼1.247.08 ▼43.42
Add New Post /wp-admin/post-new.php2.11 ▼3.776.36 ▼91.45
Media Library /wp-admin/upload.php2.11 ▼1.115.41 ▼31.78

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for fyyd podcast shortcodes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,065 ▲30415.26 ▲0.6613.41 ▲11.5043.61 ▼4.42
Dashboard /wp-admin2,267 ▲615.76 ▲0.85111.44 ▲6.5138.64 ▼1.13
Posts /wp-admin/edit.php2,146 ▲432.81 ▲0.8245.40 ▲2.4936.07 ▲1.90
Add New Post /wp-admin/post-new.php1,549 ▲2323.81 ▲6.28632.41 ▼18.4335.45 ▼11.80
Media Library /wp-admin/upload.php1,446 ▲435.04 ▲0.83107.48 ▲1.5242.86 ▼6.62

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the fyyd-helper handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/fyyd-podcast-shortcodes/fyyd-podcast-shortcodes.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
3 plugin tags: podcast, audio-player, fyyd

fyyd-podcast-shortcodes/fyyd-podcast-shortcodes.php Passed 13 tests

The entry point to "fyyd podcast shortcodes" version 0.3.1 is a PHP file that has certain tags in its header comment area
107 characters long description:
this plugin adds shortcodes to present, link and promote podcasts with the help of fyyd's podcast directory

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 plugin777 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21162173530
PHP19490118
CSS4192103
Markdown110020
HTML1015
JSON1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin