84% daily-bible-verse

Code Review | Daily Bible Verse

WordPress plugin Daily Bible Verse scored84%from 54 tests.

About plugin

  • Plugin page: daily-bible-verse
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 25, 2022
  • Latest release: May 23, 2022
  • Number of updates: 6
  • Update frequency: every 14.8 days
  • Top authors: bibleverseskjv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /805 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Daily Bible Verse
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.0240.35 ▼10.24
Dashboard /wp-admin3.59 ▼0.0449.62 ▼17.88
Posts /wp-admin/edit.php3.70 ▲0.0251.48 ▼4.62
Add New Post /wp-admin/post-new.php6.17 ▲0.0287.91 ▼25.39
Media Library /wp-admin/upload.php3.51 ▲0.0237.05 ▼3.56

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
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 /2,791 ▲3014.20 ▼0.421.86 ▲0.2543.02 ▼0.22
Dashboard /wp-admin2,198 ▲185.65 ▲0.0390.02 ▼1.8942.46 ▲1.53
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0537.72 ▼5.4836.81 ▼2.83
Add New Post /wp-admin/post-new.php1,526 ▼517.70 ▼5.49664.05 ▼22.6351.62 ▲0.78
Media Library /wp-admin/upload.php1,400 ▼04.32 ▲0.0998.44 ▼13.5843.20 ▼3.72

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
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_daily_bible_verse_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
  • 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, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

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

The entry point to "Daily Bible Verse" version 1.0 is a PHP file that has certain tags in its header comment area
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected72 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1221169
CSS1003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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

It is recommended to compress PNG files in your plugin to 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%