84% wordcast

Code Review | WordCast

WordPress plugin WordCast scored84%from 54 tests.

About plugin

  • Plugin page: wordcast
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 7, 2019
  • Latest release: Oct 27, 2022
  • Number of updates: 22
  • Update frequency: every 56.3 days
  • Top authors: emilwibe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /914 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▲5.71ms] Passed 4 tests

An overview of server-side resources used by WordCast
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1742.41 ▲2.88
Dashboard /wp-admin3.51 ▲0.1663.18 ▲1.58
Posts /wp-admin/edit.php3.57 ▲0.2258.92 ▲9.81
Add New Post /wp-admin/post-new.php6.22 ▲0.34110.80 ▲8.57
Media Library /wp-admin/upload.php3.37 ▲0.1446.20 ▲12.18
WordCast Channels /wp-admin/edit.php?post_type=wordcastchannel3.4949.26
WordCast Episodes /wp-admin/edit.php?post_type=wordcastepisode3.4944.60
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins3.4443.84

Server storage [IO: ▲0.21MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
wordcast_category_children
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WordCast
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲12613.64 ▼1.142.17 ▲0.3247.32 ▲5.34
Dashboard /wp-admin2,272 ▲844.87 ▼1.0697.13 ▼16.1847.32 ▲4.95
Posts /wp-admin/edit.php2,163 ▲742.04 ▲0.0239.09 ▼1.7647.48 ▲9.49
Add New Post /wp-admin/post-new.php1,601 ▲8218.21 ▼4.91633.85 ▼15.3175.18 ▲21.92
Media Library /wp-admin/upload.php1,462 ▲714.23 ▼0.00100.19 ▲0.6452.01 ▲6.05
WordCast Channels /wp-admin/edit.php?post_type=wordcastchannel1,1522.0035.1440.65
WordCast Episodes /wp-admin/edit.php?post_type=wordcastepisode1,1891.9835.8053.44
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins9942.2127.0432.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • wordcast_category_children
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wordcast/wordcast-register-templates.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/wordcast/tgm-plugin-activation/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordcast/wordcast-custom-post-types.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordcast/wordcast-custom-taxonomies.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordcast/wordcast-channel-categories.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wordcast/templates/single-wc-channel.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordcast/wordcast-functions.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordcast/wordcast-admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wordcast/templates/channel-data.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordcast/wordcast-add-acf.php:2

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 is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Requires at least: Invalid plugin version format
You can take inspiration from this readme.txt

wordcast/wordcast.php 92% from 13 tests

The entry point to "WordCast" version 1.1.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)

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
Success! There were no dangerous files found in this plugin3,644 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP155951,6633,308
PO File1139142336

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity45.00
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.23
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods109
▷ Static methods87.34%
▷ Public methods8376.15%
▷ Protected methods2321.10%
▷ Private methods32.75%
Functions28
▷ Named functions1242.86%
▷ Anonymous functions1657.14%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
There were not PNG files found in your plugin