94% add-podtrac-analytics-for-seriously-simple-podcasting

Code Review | Add Podtrac Analytics for Seriously Simple Podcasting

WordPress plugin Add Podtrac Analytics for Seriously Simple Podcasting scored 94% from 54 tests.

About plugin

  • Plugin page: add-podtrac-analy...
  • Plugin version: 0.1.10
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Jan 21, 2020
  • Latest release: Jan 27, 2022
  • Number of updates: 31
  • Update frequency: every 23.8 days
  • Top authors: snightingale (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,114 total downloads

Benchmarks

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.02MB] [CPU: ▼295.48ms] Passed 4 tests

Analyzing server-side resources used by Add Podtrac Analytics for Seriously Simple Podcasting
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0151.58 ▼1.37
Dashboard /wp-admin3.41 ▲0.0131.80 ▼4.03
Posts /wp-admin/edit.php3.65 ▲0.0136.30 ▼3.62
Add New Post /wp-admin/post-new.php6.88 ▼0.08101.91 ▼1,172.88
Media Library /wp-admin/upload.php3.30 ▲0.0124.31 ▲0.71

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Add Podtrac Analytics for Seriously Simple Podcasting
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲6315.92 ▲0.217.20 ▲1.602.13 ▼0.33
Dashboard /wp-admin2,895 ▲346.14 ▼0.02116.86 ▼40.11157.42 ▲1.21
Posts /wp-admin/edit.php2,688 ▼33.24 ▲0.0063.00 ▼6.35143.68 ▼10.30
Add New Post /wp-admin/post-new.php1,668 ▼4318.43 ▼4.03391.98 ▼45.10157.37 ▼1.96
Media Library /wp-admin/upload.php1,698 ▼05.49 ▼0.02133.23 ▼5.32186.58 ▲2.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/add-podtrac-analytics-for-seriously-simple-podcasting/podtrac-analytics.php:91

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: podcast, seriously simple podcasting, podtrac, podcast stats, blubrry

add-podtrac-analytics-for-seriously-simple-podcasting/podtrac-analytics.php 92% from 13 tests

"Add Podtrac Analytics for Seriously Simple Podcasting" version 0.1.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:
  • Main file name: Name the main plugin file the same as the plugin slug ("add-podtrac-analytics-for-seriously-simple-podcasting.php" instead of "podtrac-analytics.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected129 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12362129

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin