84% bible-verse-of-the-day

Code Review | Bible Verse of the Day

WordPress plugin Bible Verse of the Day scored 84% from 54 tests.

About plugin

  • Plugin page: bible-verse-of-th...
  • Plugin version: 2.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Mar 9, 2013
  • Latest release: Aug 14, 2023
  • Number of updates: 106
  • Update frequency: every 36.0 days
  • Top authors: dailyverses (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

4,000+ active / 59,408 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.04MB] [CPU: ▼4.97ms] Passed 4 tests

This is a short check of server-side resources used by Bible Verse of the Day
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.89 ▲0.12
Dashboard /wp-admin3.35 ▲0.0444.61 ▼2.42
Posts /wp-admin/edit.php3.40 ▲0.0444.37 ▼5.97
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.20 ▼11.20
Media Library /wp-admin/upload.php3.27 ▲0.0436.21 ▼0.27

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options
widget_dailyverseswidget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_randombibleversewidget
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Bible Verse of the Day
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲9313.35 ▼1.031.96 ▲0.3040.20 ▼7.28
Dashboard /wp-admin2,209 ▲215.85 ▲0.9895.11 ▼5.4236.49 ▼4.95
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0438.85 ▼4.0534.41 ▼0.56
Add New Post /wp-admin/post-new.php6,587 ▲5,07322.29 ▲4.81913.74 ▲233.2153.47 ▲0.50
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0695.44 ▼19.6242.60 ▼4.07

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_randombibleversewidget
    • can_compress_scripts
    • widget_dailyverseswidget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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 add_action() in wp-content/plugins/bible-verse-of-the-day/bible-verse-of-the-day.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_block_wrapper_attributes() in wp-content/plugins/bible-verse-of-the-day/build/render.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 58 tag instead of maximum 10
Please take inspiration from this readme.txt

bible-verse-of-the-day/bible-verse-of-the-day.php Passed 13 tests

"Bible Verse of the Day" version 2.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
83 characters long description:
The daily Bible verse or a random Bible verse on your website, from DailyVerses.net

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected917 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP311369863
JSON10041
CSS33012
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity65.00
▷ Minimum class complexity65.00
▷ Maximum class complexity65.00
Average method complexity17.00
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions103
▷ Named functions103100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected