83% sel-church-sermons

Code Review | Sel Church Sermon

WordPress plugin Sel Church Sermon scored83%from 54 tests.

About plugin

  • Plugin page: sel-church-sermons
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Aug 5, 2017
  • Latest release: Aug 11, 2017
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: selthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /937 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.52MB] [CPU: ▼2.00ms] Passed 4 tests

A check of server-side resources used by Sel Church Sermon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.03 ▲0.5741.88 ▲4.05
Dashboard /wp-admin3.87 ▲0.5247.21 ▼13.66
Posts /wp-admin/edit.php3.93 ▲0.5750.99 ▲6.80
Add New Post /wp-admin/post-new.php6.39 ▲0.5097.72 ▼3.17
Media Library /wp-admin/upload.php3.73 ▲0.5038.70 ▲4.77
Add New Sermon /wp-admin/post-new.php?post_type=selt_sermon3.9357.21
Series /wp-admin/edit-tags.php?taxonomy=selt_sermon_series&post_type=selt_sermon3.7245.27
Speaker /wp-admin/edit-tags.php?taxonomy=selt_sermon_speaker&post_type=selt_sermon3.7252.10
All Sermons /wp-admin/edit.php?post_type=selt_sermon3.8439.66
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins3.8037.67
Tags /wp-admin/edit-tags.php?taxonomy=selt_sermon_tag&post_type=selt_sermon3.7236.61
Topics /wp-admin/edit-tags.php?taxonomy=selt_sermon_topic&post_type=selt_sermon3.7235.10

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-sermons
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Sel Church Sermon: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲13113.42 ▼0.961.48 ▼0.3841.15 ▼3.54
Dashboard /wp-admin2,280 ▲925.85 ▲1.01107.44 ▲3.6943.03 ▲1.52
Posts /wp-admin/edit.php2,174 ▲852.05 ▼0.0041.39 ▲4.7241.00 ▲6.83
Add New Post /wp-admin/post-new.php1,590 ▲7123.12 ▲0.04633.17 ▼60.2348.88 ▼8.63
Media Library /wp-admin/upload.php1,473 ▲854.30 ▲0.0798.29 ▼2.2145.30 ▼0.62
Add New Sermon /wp-admin/post-new.php?post_type=selt_sermon2,8757.96196.1974.38
Series /wp-admin/edit-tags.php?taxonomy=selt_sermon_series&post_type=selt_sermon1,3442.3327.7432.83
Speaker /wp-admin/edit-tags.php?taxonomy=selt_sermon_speaker&post_type=selt_sermon1,3412.3333.0237.36
All Sermons /wp-admin/edit.php?post_type=selt_sermon1,2102.0033.9234.19
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins1,0022.0926.2829.18
Tags /wp-admin/edit-tags.php?taxonomy=selt_sermon_tag&post_type=selt_sermon1,3162.3330.1536.71
Topics /wp-admin/edit-tags.php?taxonomy=selt_sermon_topic&post_type=selt_sermon1,3442.3330.9536.54

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_theysaidso_widget
    • widget_recent-sermons
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/sel-church-sermons/inc/tgmpa/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/sel-church-sermons/inc/tgmpa/class-tgm-plugin-activation.php:2109

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: church sermon, sermons, church

sel-church-sermons/plugin.php 69% from 13 tests

"Sel Church Sermon" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 163 characters long)
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("sel-church-sermons.php" instead of "plugin.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin2,211 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP85751,8472,211

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity44.12
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.29
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods105
▷ Static methods54.76%
▷ Public methods8278.10%
▷ Protected methods2321.90%
▷ Private methods00.00%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin