74% sermonaudio-widgets

Code Review | SermonAudio Widgets

WordPress plugin SermonAudio Widgets scored74%from 54 tests.

About plugin

  • Plugin page: sermonaudio-widgets
  • Plugin version: 1.9.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Feb 25, 2013
  • Latest release: Sep 5, 2014
  • Number of updates: 29
  • Update frequency: every 19.2 days
  • Top authors: SermonAudio (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /5,193 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.57ms] Passed 4 tests

This is a short check of server-side resources used by SermonAudio Widgets
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.55 ▼6.57
Dashboard /wp-admin3.31 ▲0.0143.20 ▼4.68
Posts /wp-admin/edit.php3.36 ▲0.0146.70 ▼6.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.98 ▼8.51
Media Library /wp-admin/upload.php3.24 ▲0.0136.34 ▲4.66
SermonAudio Plugin /wp-admin/plugins.php?page=SermonAudioPluginOptions3.2033.31

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: 1 new table, 7 new options
New tables
wp_sa_plugin
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
sa_plugin_db_version
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

SermonAudio Widgets: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.24 ▼1.081.85 ▲0.1740.38 ▼2.59
Dashboard /wp-admin2,210 ▲255.04 ▼0.84107.62 ▲8.2338.33 ▼9.93
Posts /wp-admin/edit.php2,096 ▲72.01 ▼0.0338.81 ▲0.3236.11 ▲0.68
Add New Post /wp-admin/post-new.php1,535 ▲1623.37 ▲0.02683.52 ▲56.1355.60 ▲1.58
Media Library /wp-admin/upload.php1,392 ▲74.21 ▼0.00106.09 ▲9.2646.23 ▲1.25
SermonAudio Plugin /wp-admin/plugins.php?page=SermonAudioPluginOptions8662.0228.9127.82

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_sa_plugin
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • sa_plugin_db_version
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/sermonaudio-widgets/sermonaudiowidget.php:22
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/sermonaudio-widgets/sermonaudiowidget.php on line 18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
7 plugin tags: audio, sermonaudiocom, media, church, sermonaudio...

sermonaudio-widgets/sermonaudiowidget.php 92% from 13 tests

This is the main PHP file of "SermonAudio Widgets" version 1.9.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sermonaudio-widgets.php" instead of "sermonaudiowidget.php")

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
No dangerous file extensions were detected1,405 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP116268751
JavaScript18630534
CSS1160120

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.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
There are no PNG files in this plugin