10% podcastde-wordpress-plugin

Code Review | podcast.de WordPress Plugin

WordPress plugin podcast.de WordPress Plugin scored10%from 54 tests.

About plugin

  • Plugin page: podcastde-wordpre...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.2-3.3.1
  • WordPress version: 6.3.1
  • First release: Feb 14, 2012
  • Latest release: Feb 14, 2012
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: podcastDe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,479 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/podcastde-wordpress-plugin/lib/Plugin.php+126
    Declaration of PodcastDePlugin::getHeader($display = false) should be compatible with PodcastDePluginStandards::getHeader($logo = NULL, $display = false)

Server metrics [RAM: ▼1.96MB] [CPU: ▼58.26ms] Passed 4 tests

A check of server-side resources used by podcast.de WordPress Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.28 ▼40.67
Dashboard /wp-admin2.05 ▼1.266.49 ▼49.10
Posts /wp-admin/edit.php2.05 ▼1.314.86 ▼45.67
Add New Post /wp-admin/post-new.php2.05 ▼3.845.98 ▼97.58
Media Library /wp-admin/upload.php2.05 ▼1.186.61 ▼30.35

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by podcast.de WordPress Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲9813.24 ▼1.361.88 ▲0.1040.05 ▼4.14
Dashboard /wp-admin2,222 ▲375.84 ▼0.04102.85 ▼13.3887.26 ▲45.53
Posts /wp-admin/edit.php2,111 ▲222.01 ▼0.0236.95 ▲2.0335.50 ▼1.18
Add New Post /wp-admin/post-new.php1,684 ▲16522.39 ▼0.99764.32 ▲73.7359.28 ▲4.82
Media Library /wp-admin/upload.php1,401 ▲134.23 ▲0.05105.19 ▼6.0551.43 ▲3.48

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
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/podcastde-wordpress-plugin/lib/Plugin.php+126
    Declaration of PodcastDePlugin::getHeader($display = false) should be compatible with PodcastDePluginStandards::getHeader($logo = NULL, $display = false)
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/podcastde-wordpress-plugin/podcastde.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'PodcastDePluginStandards' not found in wp-content/plugins/podcastde-wordpress-plugin/lib/Plugin.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'PodcastDePluginStandards' not found in wp-content/plugins/podcastde-wordpress-plugin/lib/Plugin.php:10
    • > PHP Warning
      Declaration of PodcastDePlugin::getHeader($display = false) should be compatible with PodcastDePluginStandards::getHeader($logo = NULL, $display = false) in wp-content/plugins/podcastde-wordpress-plugin/lib/Plugin.php on line 126
    • > PHP Fatal error
      Uncaught Error: Class 'PodcastDePluginStandards' not found in wp-content/plugins/podcastde-wordpress-plugin/lib/Plugin.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Add and delete users.), #2 (Add and customize your widget.), #3 (Example for a widget. Title, rss icon and footer are customizable.)
  • Tags: You are using too many tags: 13 tag instead of maximum 10
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === podcastde-wordpress-plugin === )
Please take inspiration from this readme.txt

podcastde-wordpress-plugin/podcastde.php 77% from 13 tests

The primary PHP file in "podcast.de WordPress Plugin" version 0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Please don't use more than 140 characters for the plugin description (currently 223 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("podcastde-wordpress-plugin.php" instead of "podcastde.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin855 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP7189357604
PO File25250129
CSS2290122

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity6.22
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes00.00%
Methods51
▷ Static methods23.92%
▷ Public methods3772.55%
▷ Protected methods815.69%
▷ Private methods611.76%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants18.33%
▷ Class constants1191.67%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png21.15KB9.05KB▼ 57.20%
assets/banner-772x250.png22.45KB9.10KB▼ 59.47%
images/podcastde_icon.png0.55KB0.90KB0.00%
screenshot-3.png11.10KB5.29KB▼ 52.33%
screenshot-1.png26.08KB10.57KB▼ 59.48%