84% visual-verse-of-the-day-widget

Code Review | Visual Bible Verse of the Day Widget

WordPress plugin Visual Bible Verse of the Day Widget scored84%from 54 tests.

About plugin

  • Plugin page: visual-verse-of-t...
  • Plugin version: 1.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Dec 5, 2014
  • Latest release: Jul 24, 2023
  • Number of updates: 49
  • Update frequency: every 64.4 days
  • Top authors: karl.kranich (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /10,210 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.73ms] Passed 4 tests

An overview of server-side resources used by Visual Bible Verse of the Day Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.42 ▼4.16
Dashboard /wp-admin3.31 ▼0.0344.09 ▼13.42
Posts /wp-admin/edit.php3.36 ▲0.0146.20 ▲1.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.57 ▼8.99
Media Library /wp-admin/upload.php3.24 ▲0.0132.20 ▼4.33

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_vv_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Visual Bible Verse of the Day Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.15 ▼1.291.58 ▼0.1340.47 ▲1.07
Dashboard /wp-admin2,206 ▲144.86 ▼1.03108.14 ▲5.1643.10 ▼0.15
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0438.54 ▼0.1834.25 ▼1.66
Add New Post /wp-admin/post-new.php1,542 ▲918.12 ▼5.14594.27 ▼71.1348.86 ▼6.41
Media Library /wp-admin/upload.php1,388 ▲34.19 ▲0.0791.88 ▼12.4040.21 ▼4.08

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_vv_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/visual-verse-of-the-day-widget/vv-widget.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: christian, photography, nature, widget, bible

visual-verse-of-the-day-widget/vv-widget.php 92% from 13 tests

"Visual Bible Verse of the Day Widget" version 1.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("visual-verse-of-the-day-widget.php" instead of "vv-widget.php")

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
There were no executable files found in this plugin95 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1111885
CSS10010

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity13.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin