83% simple-sermon-media-podcast

Code Review | Simple Sermon Media & Podcast

WordPress plugin Simple Sermon Media & Podcast scored83%from 54 tests.

About plugin

  • Plugin page: simple-sermon-med...
  • Plugin version: 1.0.13
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.2-5.7.2
  • WordPress version: 6.3.1
  • First release: Aug 18, 2020
  • Latest release: Jun 2, 2021
  • Number of updates: 29
  • Update frequency: every 9.9 days
  • Top authors: elimtaft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /642 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼0.78ms] Passed 4 tests

Analyzing server-side resources used by Simple Sermon Media & Podcast
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0949.90 ▲8.23
Dashboard /wp-admin3.34 ▲0.0451.79 ▼6.35
Posts /wp-admin/edit.php3.41 ▲0.0654.13 ▲4.48
Add New Post /wp-admin/post-new.php5.94 ▲0.0596.84 ▼3.79
Media Library /wp-admin/upload.php3.26 ▲0.0341.67 ▲2.53
Options /wp-admin/edit.php?post_type=sermon_media_post&page=smet0_options3.2336.12
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=sermon_media_post3.2636.68
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=sermon_media_post3.2540.80
Sermons /wp-admin/edit.php?post_type=sermon_media_post3.3441.66
Add New /wp-admin/post-new.php?post_type=sermon_media_post3.4354.46

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
category_children
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Sermon Media & Podcast
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲15713.35 ▼1.208.98 ▲7.5041.12 ▼6.21
Dashboard /wp-admin2,238 ▲615.63 ▲0.0193.03 ▲1.1842.55 ▲3.34
Posts /wp-admin/edit.php2,146 ▲462.00 ▲0.0338.83 ▼0.3438.46 ▼0.01
Add New Post /wp-admin/post-new.php1,570 ▲3318.21 ▼0.08638.97 ▼17.8064.47 ▼8.63
Media Library /wp-admin/upload.php1,443 ▲464.23 ▼0.05101.96 ▲1.4544.01 ▲1.77
Options /wp-admin/edit.php?post_type=sermon_media_post&page=smet0_options1,0092.0426.2435.07
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=sermon_media_post1,3622.1231.6030.20
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=sermon_media_post1,5012.1329.0535.07
Sermons /wp-admin/edit.php?post_type=sermon_media_post1,1932.1231.8131.66
Add New /wp-admin/post-new.php?post_type=sermon_media_post2,7067.88170.8065.60

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • category_children

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function simple_sermon_media_podcasting\\plugin_dir_path() in wp-content/plugins/simple-sermon-media-podcast/public/templates/archive-sermon_media_post.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: media, sermons, player

simple-sermon-media-podcast/simple-sermon-media-podcasting.php 77% from 13 tests

The entry point to "Simple Sermon Media & Podcast" version 1.0.13 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-sermon-media-podcast.php" instead of "simple-sermon-media-podcasting.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,051 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13209644834
CSS2216142
JavaScript2181175

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity12.43
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods50
▷ Static methods1326.00%
▷ Public methods3978.00%
▷ Protected methods00.00%
▷ Private methods1122.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected