84% 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 scored84%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: 6.3.1
  • 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

50+ active /2,551 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.23ms] Passed 4 tests

An overview of 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.50 ▲0.0438.39 ▼5.40
Dashboard /wp-admin3.34 ▲0.0444.92 ▼4.22
Posts /wp-admin/edit.php3.39 ▲0.0347.94 ▼2.76
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.53 ▲7.67
Media Library /wp-admin/upload.php3.26 ▲0.0331.50 ▼0.52

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Add Podtrac Analytics for Seriously Simple Podcasting
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.27 ▼1.381.67 ▼0.5143.23 ▼4.43
Dashboard /wp-admin2,203 ▲185.85 ▼0.03111.19 ▲6.8041.27 ▲0.34
Posts /wp-admin/edit.php2,092 ▼02.05 ▲0.0439.33 ▼4.8336.13 ▼2.18
Add New Post /wp-admin/post-new.php1,533 ▲1623.16 ▲5.57600.90 ▼92.2262.67 ▲4.12
Media Library /wp-admin/upload.php1,388 ▲34.18 ▼0.0896.64 ▲2.2544.86 ▲4.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

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
Good news, no errors were detected

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 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 | A shallow check that no browser errors were triggered
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 stats, seriously simple podcasting, podcast, podtrac, blubrry

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

This is the main PHP file of "Add Podtrac Analytics for Seriously Simple Podcasting" version 0.1.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: The principal plugin file should be 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 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin129 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12362129

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 problems
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