93% add-podtrac-to-seriously-simple-podcasting

Code Review | Podtrac & Seriously Simple Podcasting

WordPress plugin Podtrac & Seriously Simple Podcasting scored 93% from 53 tests.

About plugin

  • Plugin page: add-podtrac-to-se...
  • Plugin version: 0.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4
  • WordPress version: 5.8.1
  • First release: Aug 25, 2015
  • Latest release: Mar 10, 2020
  • Number of updates: 4
  • Update frequency: every 414.5 days
  • Top authors: whyisjake (100%)

Code review

53 tests

User reviews

1 review

Install metrics

100+ active / 2,658 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼266.33ms] Passed 4 tests

A check of server-side resources used by Podtrac & Seriously Simple Podcasting
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1226.18 ▲8.86
Dashboard /wp-admin3.06 ▲0.0143.75 ▼7.33
Posts /wp-admin/edit.php3.11 ▲0.0138.84 ▲3.39
Add New Post /wp-admin/post-new.php5.42 ▼0.0194.29 ▼1,054.36
Media Library /wp-admin/upload.php3.00 ▼0.0032.27 ▼7.00

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Podtrac & Seriously Simple Podcasting
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,674 ▲6816.43 ▲0.898.17 ▼0.4748.12 ▲2.87
Dashboard /wp-admin2,931 ▲785.90 ▲0.06134.56 ▼3.84106.82 ▲10.81
Posts /wp-admin/edit.php2,703 ▼32.69 ▲0.0167.03 ▲5.0389.03 ▲0.97
Add New Post /wp-admin/post-new.php1,653 ▼20018.79 ▼0.28360.74 ▼15.81106.83 ▼1.25
Media Library /wp-admin/upload.php1,772 ▼05.00 ▼0.01145.72 ▼12.66110.28 ▼11.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

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 | 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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/add-podtrac-to-seriously-simple-podcasting/podtrac.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Podtrac admin interface, integrated with Seriously Simple Podcasting.) image missing
The official readme.txt is a good inspiration

add-podtrac-to-seriously-simple-podcasting/podtrac.php 85% from 13 tests

The primary PHP file in "Podtrac & Seriously Simple Podcasting" version 0.5.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("add-podtrac-to-seriously-simple-podcasting.php" instead of "podtrac.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin66 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png113.03KB32.24KB▼ 71.48%