78% bibleget-io

Code Review | BibleGet I/O

WordPress plugin BibleGet I/O scored78%from 54 tests.

About plugin

  • Plugin page: bibleget-io
  • Plugin version: 7.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.7.1
  • WordPress version: 6.3.1
  • First release: Aug 19, 2014
  • Latest release: Apr 19, 2021
  • Number of updates: 145
  • Update frequency: every 16.8 days
  • Top authors: Lwangaman (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /5,128 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.24MB] [CPU: ▼4.46ms] Passed 4 tests

Analyzing server-side resources used by BibleGet I/O
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2442.77 ▲1.83
Dashboard /wp-admin3.55 ▲0.2447.95 ▼4.94
Posts /wp-admin/edit.php3.60 ▲0.2453.39 ▲0.49
Add New Post /wp-admin/post-new.php6.13 ▲0.2486.33 ▼13.65
Media Library /wp-admin/upload.php3.48 ▲0.2440.05 ▲0.27

Server storage [IO: ▲1.23MB] [DB: ▲0.24MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 82 new files
Database: no new tables, 89 new options
New WordPress options
bibleget_biblebooks30
bibleget_NABREIDX
bibleget_biblebooks70
bibleget_biblebooks55
bibleget_biblebooks72
bibleget_biblebooks46
bibleget_DRBIDX
bibleget_biblebooks53
bibleget_biblebooks44
bibleget_biblebooks50
...

Browser metrics Passed 4 tests

An overview of browser requirements for BibleGet I/O
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.271.91 ▲0.0345.17 ▼3.04
Dashboard /wp-admin2,195 ▲215.65 ▲0.0686.50 ▼12.1542.12 ▼4.28
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0140.26 ▲0.3936.51 ▲0.90
Add New Post /wp-admin/post-new.php1,526 ▼123.01 ▼0.10616.86 ▼96.2147.40 ▼12.71
Media Library /wp-admin/upload.php1,397 ▼34.19 ▲0.11110.26 ▲1.8341.79 ▼2.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 89 options
    • widget_theysaidso_widget
    • bibleget_biblebooks44
    • bibleget_biblebooks34
    • bibleget_biblebooks39
    • bibleget_biblebooks41
    • bibleget_biblebooks62
    • bibleget_biblebooks27
    • bibleget_NABREIDX
    • bibleget_biblebooks55
    • widget_recent-posts
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/bibleget-io/bibleget-io.php
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/bibleget-io/minifier/path-converter/src/Converter.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/bibleget-io/minifier/minify/src/Exceptions/IOException.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/bibleget-io/minifier/path-converter/src/NoConverter.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/bibleget-io/minifier/minify/src/Exceptions/FileImportException.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/bibleget-io/minifier/minify/src/CSS.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/bibleget-io/minifier/minify/src/JS.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exception' not found in wp-content/plugins/bibleget-io/minifier/minify/src/Exceptions/BasicException.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
The official readme.txt is a good inspiration

bibleget-io/bibleget-io.php 92% from 13 tests

The entry point to "BibleGet I/O" version 7.5 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin14,838 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript112314655,265
PO File111,1901,7964,552
PHP146171,7494,359
CSS79210573
Markdown142089

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity24.00
▷ Minimum class complexity1.00
▷ Maximum class complexity129.00
Average method complexity5.45
▷ Minimum method complexity1.00
▷ Maximum method complexity64.00
Code structure
Namespaces3
Interfaces1
Traits0
Classes16
▷ Abstract classes318.75%
▷ Concrete classes1381.25%
▷ Final classes00.00%
Methods95
▷ Static methods1616.84%
▷ Public methods6164.21%
▷ Protected methods3435.79%
▷ Private methods00.00%
Functions39
▷ Named functions2769.23%
▷ Anonymous functions1230.77%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.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 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/fs-sprite.png1.07KB0.18KB▼ 82.82%