83% bible-verses-references

Code Review | Bible Verses References

WordPress plugin Bible Verses References scored 83% from 54 tests.

About plugin

  • Plugin page: bible-verses-refe...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 23, 2022
  • Latest release: Oct 7, 2022
  • Number of updates: 4
  • Update frequency: every 3.8 days
  • Top authors: bboyguil (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 259 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 gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.16ms] Passed 4 tests

This is a short check of server-side resources used by Bible Verses References
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0329.34 ▼16.53
Dashboard /wp-admin3.36 ▲0.0648.32 ▼5.78
Posts /wp-admin/edit.php3.47 ▲0.1250.94 ▲0.34
Add New Post /wp-admin/post-new.php5.94 ▲0.0694.95 ▲4.50
Media Library /wp-admin/upload.php3.28 ▲0.0635.41 ▲1.35
Bible Verses Refs /wp-admin/options-general.php?page=bible_verses_references3.2230.58

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Bible Verses References
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲16913.56 ▼0.585.32 ▲3.4140.11 ▼3.43
Dashboard /wp-admin2,210 ▲285.90 ▲0.06108.03 ▲1.3441.83 ▲0.32
Posts /wp-admin/edit.php2,093 ▲41.98 ▼0.0740.22 ▼0.7336.87 ▲1.46
Add New Post /wp-admin/post-new.php1,517 ▼1617.40 ▼5.73644.00 ▼29.5454.23 ▲0.65
Media Library /wp-admin/upload.php1,392 ▲74.20 ▼0.1098.15 ▼8.0441.33 ▼2.03
Bible Verses Refs /wp-admin/options-general.php?page=bible_verses_references8282.0224.2328.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=bible_verses_references
    • > Notice in wp-content/plugins/bible-verses-references/includes/bible-verses-refs-settings.php+105
    Trying to access array offset on value of type bool

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: theology, christian, cristianismo, versculo, bible...

bible-verses-references/bible-verses-references.php 77% from 13 tests

The main file in "Bible Verses References" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "5.0")
  • Requires PHP: Required version must match the one declared in readme.txt ("7.0" instead of "7.2")

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 detected726 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS2471254
PHP65955231
JavaScript3494189
PO File1202952

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity10.00
▷ Minimum class complexity4.00
▷ Maximum class complexity16.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/images/social-icons.png1.79KB1.77KB▼ 0.93%