72% bg-biblie-references

Code Review | Bg Bible References

WordPress plugin Bg Bible References scored 72% from 54 tests.

About plugin

  • Plugin page: bg-biblie-references
  • Plugin version: 3.18.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8.1
  • WordPress version: 5.8.1
  • First release: Oct 14, 2013
  • Latest release: Sep 26, 2021
  • Number of updates: 296
  • Update frequency: every 9.9 days
  • Top authors: VBog (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

200+ active / 8,472 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.57MB] [CPU: ▼135.76ms] Passed 4 tests

Analyzing server-side resources used by Bg Bible References
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.7339.91 ▲7.38
Dashboard /wp-admin3.64 ▲0.5954.13 ▲4.62
Posts /wp-admin/edit.php3.69 ▲0.5848.74 ▲2.59
Add New Post /wp-admin/post-new.php6.01 ▲0.5896.82 ▼555.85
Media Library /wp-admin/upload.php3.52 ▲0.5237.31 ▲5.62
Bible References /wp-admin/options-general.php?page=bg-biblie-references/bg_bibrefs.php3.7032.98

Server storage [IO: ▲42.41MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Please try to fix the following items
  • Total filesystem usage must be limited to 25MB (currently using 42.41MB)
Filesystem: 182 new files
Database: no new tables, 42 new options
New WordPress options
bg_bibrefs_fgc
bg_bibrefs_prereq
bg_bibrefs_site
bg_bibrefs_dot
bg_bibrefs_debug
bg_bibrefs_v_lang
bg_bibrefs_curl
bg_bibrefs_l_lang
bg_bibrefs_strip_space
widget_bg_bibrefs_bible_widget
...

Browser metrics Passed 4 tests

An overview of browser requirements for Bg Bible References
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,695 ▲9916.01 ▲0.4611.09 ▲0.4847.33 ▼3.26
Dashboard /wp-admin2,970 ▲395.87 ▼0.13161.42 ▲16.19111.97 ▲6.02
Posts /wp-admin/edit.php2,746 ▲72.70 ▼0.0165.96 ▼10.5583.64 ▼6.39
Add New Post /wp-admin/post-new.php1,967 ▲28424.26 ▲5.50388.50 ▼10.90124.33 ▲17.13
Media Library /wp-admin/upload.php1,814 ▲75.00 ▼0.03156.47 ▼9.20113.40 ▲1.01
Bible References /wp-admin/options-general.php?page=bg-biblie-references/bg_bibrefs.php2,0492.4258.33101.66

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: 3 options
    • widget_bg_bibrefs_quote_widget
    • widget_bg_bibrefs_bible_widget
    • widget_bg_bibrefs_bible_search_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=bg-biblie-references/bg_bibrefs.php
    • > Warning in wp-content/plugins/bg-biblie-references/includes/settings.php+475
    opendir(wp-content/uploads/bible/): failed to open dir: No such file or directory

SRP 0% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/bg-biblie-references/bg_bibrefs.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/bg-biblie-references/includes/books.php on line 23
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/bg-biblie-references/includes/books.php on line 23
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bg-biblie-references/includes/books.php on line 23

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: bible, christianity, orthodoxy

bg-biblie-references/bg_bibrefs.php 85% from 13 tests

This is the main PHP file of "Bg Bible References" version 3.18.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bg-biblie-references.php" instead of "bg_bibrefs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin6,387 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP83856463,491
PO File61,0341,2502,480
JavaScript22341261
CSS1415155

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity19.25
▷ Minimum class complexity16.00
▷ Maximum class complexity23.00
Average method complexity4.65
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions50
▷ Named functions4896.00%
▷ Anonymous functions24.00%
Constants3
▷ Global constants3100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
share42/icons.png4.25KB2.40KB▼ 43.49%
js/expand.png0.23KB0.13KB▼ 44.44%