89% soundfaith-embed

Code Review | Sermon Embed

WordPress plugin Sermon Embed scored 89% from 54 tests.

About plugin

  • Plugin page: soundfaith-embed
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Apr 9, 2017
  • Latest release: Mar 5, 2021
  • Number of updates: 17
  • Update frequency: every 83.9 days
  • Top authors: eriktdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 1,743 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
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.12ms] Passed 4 tests

An overview of server-side resources used by Sermon Embed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.93 ▼2.34
Dashboard /wp-admin3.37 ▲0.0746.48 ▼4.19
Posts /wp-admin/edit.php3.48 ▲0.1358.04 ▲13.13
Add New Post /wp-admin/post-new.php5.95 ▲0.0784.64 ▼9.38
Media Library /wp-admin/upload.php3.29 ▲0.0736.20 ▲3.44
Sermon Embed /wp-admin/options-general.php?page=soundfaith-embed3.2629.93

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
soundfaith_embed_profile_options
widget_theysaidso_widget
soundfaith_embed_sermon_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Sermon Embed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.23 ▼1.131.91 ▲0.2339.37 ▼6.62
Dashboard /wp-admin2,207 ▲195.76 ▲0.78100.25 ▼19.6337.44 ▼15.86
Posts /wp-admin/edit.php2,097 ▲82.04 ▲0.0359.33 ▲22.0442.43 ▲11.12
Add New Post /wp-admin/post-new.php1,549 ▲3218.16 ▲0.56615.99 ▲21.8452.21 ▲2.51
Media Library /wp-admin/upload.php1,392 ▲44.17 ▼0.0698.71 ▼0.7140.89 ▼1.43
Sermon Embed /wp-admin/options-general.php?page=soundfaith-embed8402.0323.1137.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: audio, embed, sermon, church

soundfaith-embed/soundfaith-embed.php 85% from 13 tests

This is the main PHP file of "Sermon Embed" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin279 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26478279

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity14.50
▷ Minimum class complexity10.00
▷ Maximum class complexity19.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin