79% predikan

Code Review | Predikan

WordPress plugin Predikan scored 79% from 54 tests.

About plugin

  • Plugin page: predikan
  • Plugin version: 1.6.1
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.0-5.5
  • WordPress version: 6.3.1
  • First release: Nov 25, 2019
  • Latest release: Oct 7, 2020
  • Number of updates: 34
  • Update frequency: every 9.4 days
  • Top authors: automcoding (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 761 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.24ms] Passed 4 tests

Server-side resources used by Predikan
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.10 ▼6.57
Dashboard /wp-admin3.35 ▲0.0545.73 ▲0.04
Posts /wp-admin/edit.php3.41 ▲0.0548.83 ▲0.88
Add New Post /wp-admin/post-new.php5.93 ▲0.0587.13 ▼10.85
Media Library /wp-admin/upload.php3.28 ▲0.0536.21 ▲0.44
All Sermons /wp-admin/edit.php?post_type=predikan3.3235.16
Preachers /wp-admin/edit-tags.php?taxonomy=predikan_speaker&post_type=predikan3.2733.49
Sermons & podcast /wp-admin/options-general.php?page=predikan-settings3.2728.41
Add New /wp-admin/post-new.php?post_type=predikan3.4050.66

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
predikan_description
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Predikan
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9213.22 ▼1.551.74 ▲0.1241.92 ▼4.37
Dashboard /wp-admin2,238 ▲535.80 ▲0.91101.30 ▼7.2741.62 ▼5.73
Posts /wp-admin/edit.php2,124 ▲321.98 ▼0.0736.61 ▼5.2831.33 ▼4.46
Add New Post /wp-admin/post-new.php1,563 ▲4923.18 ▲5.46679.62 ▲11.3959.34 ▲5.22
Media Library /wp-admin/upload.php1,423 ▲354.24 ▲0.0796.62 ▼18.7242.59 ▼3.82
All Sermons /wp-admin/edit.php?post_type=predikan1,0961.9431.6034.37
Preachers /wp-admin/edit-tags.php?taxonomy=predikan_speaker&post_type=predikan1,2662.1425.0129.39
Sermons & podcast /wp-admin/options-general.php?page=predikan-settings8142.0623.1527.13
Add New /wp-admin/post-new.php?post_type=predikan2,5507.60174.9268.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/predikan/predikan.php
    • > /wp-content/plugins/predikan/uninstall.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/predikan/templates/admin.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: sermon, podcast, church

predikan/predikan.php Passed 13 tests

The main PHP file in "Predikan" ver. 1.6.1 adds more information about the plugin and also serves as the entry point for this plugin
104 characters long description:
Upload sermons to your church's website as a podcast and include them, in a table, on any of your pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected336 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43643311
JavaScript12025

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
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