84% simcast

Code Review | Simcast

WordPress plugin Simcast scored84%from 54 tests.

About plugin

  • Plugin page: simcast
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.0
  • WordPress version: 6.3.1
  • First release: Jun 16, 2018
  • Latest release: Feb 7, 2022
  • Number of updates: 12
  • Update frequency: every 111.1 days
  • Top authors: openchamp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,085 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼0.35ms] Passed 4 tests

Analyzing server-side resources used by Simcast
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1342.30 ▲0.54
Dashboard /wp-admin3.43 ▲0.1350.43 ▼1.16
Posts /wp-admin/edit.php3.55 ▲0.1951.35 ▲2.91
Add New Post /wp-admin/post-new.php6.01 ▲0.1297.15 ▼0.81
Media Library /wp-admin/upload.php3.36 ▲0.1237.62 ▲0.05
Simcast /wp-admin/options-general.php?page=Simcast_PluginSettings3.3233.08

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 11 new options
New WordPress options
Simcast_Plugin_ShowEmbeds
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
Simcast_Plugin_UseStyling
Simcast_Plugin_CacheLength
Simcast_Plugin__installed
widget_recent-comments
Simcast_Plugin__version
db_upgraded
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simcast
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.24 ▼0.112.02 ▲0.5144.45 ▲0.96
Dashboard /wp-admin2,193 ▲135.56 ▼0.1189.70 ▼3.8342.49 ▼0.14
Posts /wp-admin/edit.php2,107 ▲71.97 ▲0.0141.15 ▲1.5737.78 ▲0.72
Add New Post /wp-admin/post-new.php1,540 ▲318.15 ▲0.03620.66 ▼7.0074.71 ▲14.52
Media Library /wp-admin/upload.php1,404 ▲44.26 ▲0.0796.02 ▲0.1642.30 ▲0.50
Simcast /wp-admin/options-general.php?page=Simcast_PluginSettings1,0012.0424.6931.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 11 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • Simcast_Plugin__installed
    • Simcast_Plugin_ShowEmbeds
    • Simcast_Plugin_UseStyling
    • widget_theysaidso_widget
    • Simcast_Plugin__version
    • can_compress_scripts
    • db_upgraded
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simcast/simcast.php:71

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
4 plugin tags: simplecast, podcasting, podcast player, podcast

simcast/simcast.php 92% from 13 tests

The primary PHP file in "Simcast" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 392 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin627 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP8224476627

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity11.83
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes233.33%
▷ Concrete classes466.67%
▷ Final classes00.00%
Methods73
▷ Static methods00.00%
▷ Public methods4561.64%
▷ Protected methods2838.36%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin