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.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9.2
  • WordPress version: 5.9.2
  • First release: Oct 14, 2013
  • Latest release: Mar 21, 2022
  • Number of updates: 297
  • Update frequency: every 10.4 days
  • Top authors: VBog (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

100+ active / 8,780 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.52MB] [CPU: ▼288.82ms] Passed 4 tests

Analyzing server-side resources used by Bg Bible References
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.18 ▲0.6655.91 ▲6.29
Dashboard /wp-admin3.94 ▲0.5337.76 ▲4.62
Posts /wp-admin/edit.php4.17 ▲0.5239.60 ▲2.74
Add New Post /wp-admin/post-new.php7.49 ▲0.5299.44 ▼1,158.89
Media Library /wp-admin/upload.php3.82 ▲0.5126.15 ▼3.76
Bible References /wp-admin/options-general.php?page=bg-biblie-references/bg_bibrefs.php4.0026.31

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_verses_lang
bg_bibrefs_exceptions
bg_bibrefs_norm_refs
widget_bg_bibrefs_bible_search_widget
bg_bibrefs_romeh
bg_bibrefs_c_font
bg_bibrefs_page
bg_bibrefs_interpret
bg_bibrefs_i_lang
bg_bibrefs_folders
...

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,779 ▲5715.87 ▲0.206.96 ▲0.912.53 ▼0.06
Dashboard /wp-admin2,895 ▲346.15 ▼0.08116.95 ▼18.84151.57 ▼8.75
Posts /wp-admin/edit.php2,698 ▲43.24 ▲0.0063.89 ▲2.80137.68 ▲1.52
Add New Post /wp-admin/post-new.php1,849 ▲7622.72 ▲1.62420.03 ▼16.87171.94 ▲12.81
Media Library /wp-admin/upload.php1,702 ▲45.47 ▼0.03137.83 ▲0.96179.34 ▼16.64
Bible References /wp-admin/options-general.php?page=bg-biblie-references/bg_bibrefs.php1,9972.5562.40168.16

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_bible_widget
    • widget_bg_bibrefs_quote_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 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
    • > 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

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: orthodoxy, bible, christianity

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

This is the main PHP file of "Bg Bible References" version 3.18.3, 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,395 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP83876443,499
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.75
▷ Minimum class complexity16.00
▷ Maximum class complexity25.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity20.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
js/expand.png0.23KB0.13KB▼ 44.44%
share42/icons.png4.25KB2.40KB▼ 43.49%