93% add-overcast-payments-to-seriously-simple-podcasting

Code Review | Overcast & Seriously Simple Podcasting

WordPress plugin Overcast & Seriously Simple Podcasting scored 93% from 54 tests.

About plugin

  • Plugin page: add-overcast-paym...
  • Plugin version: 0.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 5.9.2
  • First release: Aug 28, 2018
  • Latest release: Aug 28, 2018
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: whyisjake (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,224 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼604.41ms] Passed 4 tests

Analyzing server-side resources used by Overcast & Seriously Simple Podcasting
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0257.81 ▲6.04
Dashboard /wp-admin3.42 ▲0.0132.80 ▼0.88
Posts /wp-admin/edit.php3.65 ▲0.0136.07 ▼2.19
Add New Post /wp-admin/post-new.php6.89 ▼0.07103.06 ▼2,410.77
Media Library /wp-admin/upload.php3.30 ▲0.0025.42 ▼3.81

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Overcast & Seriously Simple Podcasting
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.81 ▲0.036.86 ▲0.663.10 ▲0.71
Dashboard /wp-admin2,895 ▲346.01 ▼0.15118.21 ▼15.39159.74 ▼3.94
Posts /wp-admin/edit.php2,691 ▼03.24 ▲0.0065.93 ▼1.27138.49 ▼10.63
Add New Post /wp-admin/post-new.php1,758 ▲9821.41 ▼0.42453.65 ▲39.17165.17 ▲2.50
Media Library /wp-admin/upload.php1,698 ▼05.48 ▼0.05146.73 ▲6.91186.12 ▼9.90

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, 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 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 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-overcast-payments-to-seriously-simple-podcasting/overcast-payments-for-ssp.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Admin interface, integrated with Seriously Simple Podcasting.) image required
You can take inspiration from this readme.txt

add-overcast-payments-to-seriously-simple-podcasting/overcast-payments-for-ssp.php 85% from 13 tests

"Overcast & Seriously Simple Podcasting" version 0.5.0'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:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("add-overcast-payments-to-seriously-simple-podcasting.php" instead of "overcast-payments-for-ssp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected51 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP192729
JavaScript11012
JSON10010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.16MB with 0.12MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png162.12KB41.97KB▼ 74.11%