84% bible-verses

Code Review | Bible Verses - Random Bible Verses

WordPress plugin Bible Verses - Random Bible Verses scored84%from 54 tests.

About plugin

  • Plugin page: bible-verses
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Jul 2, 2014
  • Latest release: Feb 9, 2022
  • Number of updates: 14
  • Update frequency: every 198.5 days
  • Top authors: joelcj91 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,597 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.03MB] [CPU: ▼6.09ms] Passed 4 tests

This is a short check of server-side resources used by Bible Verses - Random Bible Verses
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.19 ▼0.52
Dashboard /wp-admin3.33 ▲0.0346.07 ▼4.20
Posts /wp-admin/edit.php3.38 ▲0.0346.01 ▲0.51
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.46 ▼20.13
Media Library /wp-admin/upload.php3.26 ▲0.0334.40 ▲1.22

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_duckdev-bible-verses
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Bible Verses - Random Bible Verses
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.121.68 ▼0.0842.47 ▼1.10
Dashboard /wp-admin2,203 ▲155.84 ▲0.90101.51 ▼15.0240.01 ▼5.45
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0235.12 ▼4.1134.21 ▼1.97
Add New Post /wp-admin/post-new.php1,534 ▲2023.28 ▲5.85627.16 ▼18.8747.71 ▼10.45
Media Library /wp-admin/upload.php1,382 ▼64.16 ▼0.0595.84 ▲1.8042.98 ▲1.65

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 detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_duckdev-bible-verses
    • widget_recent-posts
    • theysaidso_admin_options

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bible-verses/bible-verses.php:40

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: bible verses widget, bible widget, random bible verses, bible, bible verse...

bible-verses/bible-verses.php 92% from 13 tests

The main PHP file in "Bible Verses - Random Bible Verses" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin92 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12915692

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin