84% daily-bible-verse

Code Review | Daily Bible Verse

WordPress plugin Daily Bible Verse scored 84% from 54 tests.

About plugin

  • Plugin page: daily-bible-verse
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Feb 25, 2022
  • Latest release: Feb 27, 2022
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: bibleverseskjv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 44 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼184.13ms] Passed 4 tests

A check of server-side resources used by Daily Bible Verse
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0326.59 ▲5.22
Dashboard /wp-admin3.08 ▲0.0231.16 ▼7.47
Posts /wp-admin/edit.php3.14 ▲0.0231.20 ▲1.97
Add New Post /wp-admin/post-new.php5.45 ▲0.0068.92 ▼731.37
Media Library /wp-admin/upload.php3.03 ▲0.0221.99 ▲0.34

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options
widget_daily_bible_verse_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Daily Bible Verse
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,668 ▲6715.99 ▼0.098.45 ▲3.1285.62 ▲10.94
Dashboard /wp-admin2,930 ▲316.12 ▼0.01114.18 ▼24.36165.09 ▼24.39
Posts /wp-admin/edit.php2,740 ▲33.22 ▼0.0265.93 ▲3.19137.26 ▼5.28
Add New Post /wp-admin/post-new.php3,735 ▼018.38 ▲0.55415.45 ▼45.05156.02 ▼8.74
Media Library /wp-admin/upload.php1,752 ▼05.55 ▲0.04140.81 ▼7.79188.27 ▼0.55

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 1 option in the database
    • widget_daily_bible_verse_widget

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/daily-bible-verse/daily-bible-verse.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
  • Screenshots: Please add descriptions for these screenshots #2, #3 in daily-bible-verse/assets to your readme.txt
Please take inspiration from this readme.txt

daily-bible-verse/daily-bible-verse.php Passed 13 tests

This is the main PHP file of "Daily Bible Verse" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
85 characters long description:
This plugin allows you to add a Bible Verse of the Day widget to your WordPress page.

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 plugin72 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1221169
CSS1003

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.13MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/john_316.png131.42KB117.22KB▼ 10.81%