83% ambassador-sermon-sharing-widget

Code Review | Ambassador Sermon Widget

WordPress plugin Ambassador Sermon Widget scored 83% from 54 tests.

About plugin

  • Plugin page: ambassador-sermon...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 5.9.2
  • First release: Mar 22, 2014
  • Latest release: Mar 22, 2014
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: ambassadorsermons (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 658 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: ▲0.01MB] [CPU: ▼294.28ms] Passed 4 tests

Analyzing server-side resources used by Ambassador Sermon Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0356.79 ▲7.15
Dashboard /wp-admin3.44 ▲0.0334.00 ▼1.07
Posts /wp-admin/edit.php3.67 ▲0.0339.88 ▲3.47
Add New Post /wp-admin/post-new.php6.91 ▼0.0596.94 ▼1,170.38
Media Library /wp-admin/upload.php3.32 ▲0.0222.60 ▼9.14

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
widget_ambassador_sermons

Browser metrics Passed 4 tests

Ambassador Sermon Widget: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,764 ▲1016.20 ▲0.606.14 ▲0.292.24 ▼0.18
Dashboard /wp-admin2,889 ▲316.17 ▼0.11128.20 ▼4.35160.71 ▼0.62
Posts /wp-admin/edit.php2,688 ▼03.24 ▼0.0062.83 ▼1.20143.81 ▲0.46
Add New Post /wp-admin/post-new.php1,661 ▼9716.44 ▼5.05422.12 ▼26.61163.53 ▲11.06
Media Library /wp-admin/upload.php1,698 ▼05.51 ▼0.01142.02 ▲1.24185.75 ▼12.57

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_ambassador_sermons

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

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ambassador-sermon-sharing-widget/ambassador-sermon-widget.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === ambassador-sermon-sharing-widget === )
You can take inspiration from this readme.txt

ambassador-sermon-sharing-widget/ambassador-sermon-widget.php 92% from 13 tests

"Ambassador Sermon Widget" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("ambassador-sermon-sharing-widget.php" instead of "ambassador-sermon-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin104 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12442104

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin