74% podlove-subscribe-button

Code Review | Podlove Subscribe button

WordPress plugin Podlove Subscribe button scored74%from 54 tests.

About plugin

  • Plugin page: podlove-subscribe...
  • Plugin version: 1.3.10
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 15, 2015
  • Latest release: Feb 10, 2023
  • Number of updates: 34
  • Update frequency: every 84.1 days
  • Top authors: chemiker (79.41%)cfoellmann (14.71%)eteubert (11.76%)

Code review

54 tests

User reviews

2 reviews

Install metrics

4,000+ active /41,911 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.30MB] [CPU: ▼2.59ms] Passed 4 tests

An overview of server-side resources used by Podlove Subscribe button
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3041.21 ▲1.60
Dashboard /wp-admin3.67 ▲0.3254.30 ▼7.17
Posts /wp-admin/edit.php3.72 ▲0.3655.26 ▲4.51
Add New Post /wp-admin/post-new.php6.18 ▲0.3092.25 ▼5.27
Media Library /wp-admin/upload.php3.53 ▲0.3040.98 ▲0.47
Podlove Subscribe Button /wp-admin/options-general.php?page=podlove-subscribe-button3.5038.53

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: 1 new table, 13 new options
New tables
wp_podlovesubscribebutton_button
New WordPress options
db_upgraded
widget_recent-posts
podlove_subscribe_button_default_color
podlove_subscribe_button_plugin_database_version
widget_recent-comments
widget_podlove_subscribe_button_wp_plugin_widget
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
podlove_subscribe_button_default_autowidth
...

Browser metrics Passed 4 tests

Checking browser requirements for Podlove Subscribe button
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.21 ▼0.331.56 ▼0.6742.42 ▲2.18
Dashboard /wp-admin2,199 ▲245.53 ▼0.2290.95 ▼15.7839.99 ▼3.60
Posts /wp-admin/edit.php2,107 ▲41.95 ▼0.0639.82 ▲3.3835.56 ▼0.23
Add New Post /wp-admin/post-new.php1,529 ▲123.45 ▲0.47711.79 ▲31.1550.89 ▼8.63
Media Library /wp-admin/upload.php1,404 ▲14.18 ▼0.04102.88 ▲3.7847.98 ▲5.19
Podlove Subscribe Button /wp-admin/options-general.php?page=podlove-subscribe-button1,1912.4850.8727.70

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wp_podlovesubscribebutton_button
  • Zombie WordPress options were found after uninstall: 13 options
    • podlove_subscribe_button_default_format
    • can_compress_scripts
    • podlove_subscribe_button_default_size
    • theysaidso_admin_options
    • widget_podlove_subscribe_button_wp_plugin_widget
    • podlove_subscribe_button_default_color
    • db_upgraded
    • widget_recent-posts
    • podlove_subscribe_button_default_autowidth
    • widget_theysaidso_widget
    • ...

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 12× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/podlove-subscribe-button/widget.php on line 5
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/podlove-subscribe-button/widget.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function PodloveSubscribeButton\\add_action() in wp-content/plugins/podlove-subscribe-button/version.php:45
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/podlove-subscribe-button/settings/buttons_list_table.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/podlove-subscribe-button/widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PodloveSubscribeButton\\Model\\Button' not found in wp-content/plugins/podlove-subscribe-button/model/network_button.php:4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/podlove-subscribe-button/settings/buttons_list_table.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'PodloveSubscribeButton\\Model\\Base' not found in wp-content/plugins/podlove-subscribe-button/model/button.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function PodloveSubscribeButton\\plugin_dir_path() in wp-content/plugins/podlove-subscribe-button/constants.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function PodloveSubscribeButton\\plugin_dir_path() in wp-content/plugins/podlove-subscribe-button/constants.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
7 plugin tags: widget, podlove, subscribe, network, podcast...

podlove-subscribe-button/podlove.php 85% from 13 tests

"Podlove Subscribe button" version 1.3.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("podlove-subscribe-button.php" instead of "podlove.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,536 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP112762751,224
SVG200149
JavaScript124194
CSS16057
Markdown19012

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity21.12
▷ Minimum class complexity1.00
▷ Maximum class complexity56.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes00.00%
Methods71
▷ Static methods4360.56%
▷ Public methods5881.69%
▷ Protected methods00.00%
▷ Private methods1318.31%
Functions12
▷ Named functions541.67%
▷ Anonymous functions758.33%
Constants5
▷ Global constants5100.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
No PNG files were detected