84% advanced-sermons

Code Review | Advanced Sermons

WordPress plugin Advanced Sermons scored84%from 54 tests.

About plugin

  • Plugin page: advanced-sermons
  • Plugin version: 3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Jul 2, 2019
  • Latest release: Aug 29, 2023
  • Number of updates: 66
  • Update frequency: every 23.0 days
  • Top authors: wpcodeus (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

1,000+ active /14,723 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲1.06MB] [CPU: ▲5.56ms] Passed 4 tests

This is a short check of server-side resources used by Advanced Sermons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.53 ▲1.0660.92 ▲19.17
Dashboard /wp-admin4.42 ▲1.1162.00 ▲5.68
Posts /wp-admin/edit.php4.47 ▲1.1161.18 ▲9.34
Add New Post /wp-admin/post-new.php6.93 ▲1.0499.03 ▲0.81
Media Library /wp-admin/upload.php4.25 ▲1.0246.27 ▲6.39
Series /wp-admin/edit-tags.php?taxonomy=sermon_series&post_type=sermons4.3451.75
Add Sermon /wp-admin/post-new.php?post_type=sermons4.4776.19
Buy Pro Version /wp-admin/edit.php?post_type=sermons&page=asp_upgrade_redirect4.2546.36
Settings /wp-admin/edit.php?post_type=sermons&page=asp-settings4.2556.28
All Sermons /wp-admin/edit.php?post_type=sermons4.4054.56
Topics /wp-admin/edit-tags.php?taxonomy=sermon_topics&post_type=sermons4.3448.93
Speakers /wp-admin/edit-tags.php?taxonomy=sermon_speaker&post_type=sermons4.3451.25
Books /wp-admin/edit-tags.php?taxonomy=sermon_book&post_type=sermons4.3449.96

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 58 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
asp_general_archive_option
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Sermons
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,093 ▲33215.15 ▲1.013.87 ▲2.1738.92 ▼4.89
Dashboard /wp-admin2,447 ▲2706.44 ▲0.89124.00 ▲29.9139.79 ▼6.32
Posts /wp-admin/edit.php2,379 ▲2763.66 ▲1.6552.89 ▲10.0832.29 ▼4.07
Add New Post /wp-admin/post-new.php1,632 ▲8523.52 ▲0.07654.26 ▲37.3638.22 ▼10.87
Media Library /wp-admin/upload.php1,522 ▲1254.54 ▲0.3387.05 ▼17.9542.55 ▼6.52
Series /wp-admin/edit-tags.php?taxonomy=sermon_series&post_type=sermons1,5823.4444.9931.28
Add Sermon /wp-admin/post-new.php?post_type=sermons3,2378.12199.1682.55
Buy Pro Version /wp-admin/edit.php?post_type=sermons&page=asp_upgrade_redirect2,89810.72417.33159.37
Settings /wp-admin/edit.php?post_type=sermons&page=asp-settings1,4883.3244.5081.44
All Sermons /wp-admin/edit.php?post_type=sermons1,4273.6246.6028.16
Topics /wp-admin/edit-tags.php?taxonomy=sermon_topics&post_type=sermons1,5573.4243.3231.30
Speakers /wp-admin/edit-tags.php?taxonomy=sermon_speaker&post_type=sermons1,6653.4846.3232.61
Books /wp-admin/edit-tags.php?taxonomy=sermon_book&post_type=sermons1,5583.4148.1432.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • asp_general_archive_option
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

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
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
Almost there! Just fix the following items
  • 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/advanced-sermons/admin/settings/create-tabs.php:6

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 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7, #8 in advanced-sermons/assets to your readme.txt
You can take inspiration from this readme.txt

advanced-sermons/advanced-sermons.php 92% from 13 tests

"Advanced Sermons" version 3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • 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 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin8,609 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
PHP361,0293565,566
CSS496432,406
JavaScript713999636
SVG1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity9.00
▷ Minimum class complexity8.00
▷ Maximum class complexity10.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions132
▷ Named functions12896.97%
▷ Anonymous functions43.03%
Constants3
▷ Global constants3100.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
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
styling/media-player/img/pause.png0.92KB0.10KB▼ 89.23%
styling/media-player/img/play.png1.00KB0.25KB▼ 74.93%
admin/settings/assets/check.png0.99KB0.74KB▼ 24.93%
admin/settings/assets/information.png1.08KB0.83KB▼ 23.14%
styling/media-player/img/sound.png1.12KB0.43KB▼ 61.15%