88% simplecast-epsiodes

Code Review | Simplecast Episodes

WordPress plugin Simplecast Episodes scored 88% from 54 tests.

About plugin

  • Plugin page: simplecast-epsiodes
  • Plugin version: 0.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.9
  • WordPress version: 5.8.1
  • First release: Mar 5, 2014
  • Latest release: Apr 21, 2014
  • Number of updates: 6
  • Update frequency: every 8.3 days
  • Top authors: jcasabona (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,200 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by Simplecast Episodes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1437.67 ▲11.28
Dashboard /wp-admin3.10 ▲0.0547.77 ▲1.11
Posts /wp-admin/edit.php3.16 ▲0.0548.74 ▼2.55
Add New Post /wp-admin/post-new.php4.09 ▼1.3547.97 ▼618.03
Media Library /wp-admin/upload.php3.05 ▲0.0536.49 ▲1.93
Add New /wp-admin/post-new.php?post_type=simplecast-episodes2.9836.19
Tags /wp-admin/edit-tags.php?taxonomy=topic&post_type=simplecast-episodes3.0429.19
Settings /wp-admin/edit.php?post_type=simplecast-episodes&page=simplecast-epsiodes/simplecast-options-page.php3.0231.28
Episodes /wp-admin/edit.php?post_type=simplecast-episodes3.0936.38

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Simplecast Episodes: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,752 ▲15615.80 ▲0.218.25 ▼0.5151.43 ▼4.09
Dashboard /wp-admin3,015 ▲815.85 ▼0.27147.81 ▼17.77104.01 ▼20.62
Posts /wp-admin/edit.php2,784 ▲452.70 ▲0.0067.61 ▲0.1093.33 ▼3.15
Add New Post /wp-admin/post-new.php1,623 ▼6018.73 ▼0.05388.90 ▼15.59112.30 ▼4.91
Media Library /wp-admin/upload.php1,852 ▲455.03 ▼0.00152.76 ▼18.20122.44 ▼6.89
Add New /wp-admin/post-new.php?post_type=simplecast-episodes3,3399.24222.91150.18
Tags /wp-admin/edit-tags.php?taxonomy=topic&post_type=simplecast-episodes1,7562.5165.3387.95
Settings /wp-admin/edit.php?post_type=simplecast-episodes&page=simplecast-epsiodes/simplecast-options-page.php1,2482.2258.7175.35
Episodes /wp-admin/edit.php?post_type=simplecast-episodes1,4772.6367.8181.73

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 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/post-new.php?post_type=simplecast-episodes
    • > Notice in wp-content/plugins/simplecast-epsiodes/simplecast.php+126
    Undefined index: sc_meta_nonce2

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 fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simplecast-epsiodes/simplecast-options-page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/simplecast-epsiodes/simplecast.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (The \"Add Episode\" admin screen), #2 (The Podcast Settings admin screen), #3 (A sample frontend screen)
Please take inspiration from this readme.txt

simplecast-epsiodes/simplecast.php 92% from 13 tests

The main PHP file in "Simplecast Episodes" ver. 0.6.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("simplecast-epsiodes.php" instead of "simplecast.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
There were no executable files found in this plugin245 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP38431245

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.25MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
2.png57.13KB18.45KB▼ 67.70%
3.png63.30KB21.68KB▼ 65.75%
1.png130.70KB41.92KB▼ 67.92%