83% bible-plus

Code Review | Bible Plus+

WordPress plugin Bible Plus+ scored 83% from 54 tests.

About plugin

  • Plugin page: bible-plus
  • Plugin version: 3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.8.1
  • WordPress version: 5.8.1
  • First release: Jan 4, 2017
  • Latest release: Sep 3, 2017
  • Number of updates: 33
  • Update frequency: every 7.3 days
  • Top authors: jd7777 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,358 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼140.37ms] Passed 4 tests

Server-side resources used by Bible Plus+
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1336.57 ▲16.79
Dashboard /wp-admin3.08 ▲0.0245.78 ▼0.13
Posts /wp-admin/edit.php3.13 ▲0.0248.19 ▲3.15
Add New Post /wp-admin/post-new.php5.43 ▼0.0086.07 ▼560.74
Media Library /wp-admin/upload.php3.02 ▲0.0229.80 ▼3.75
Bible+ /wp-admin/admin.php?page=bible-plus3.0326.81
DailyProverb /wp-admin/admin.php?page=daily-proverb3.0228.03

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

A short overview of filesystem and database impact
Please fix the following
  • The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/bible-plus/" and "wp-content/uploads/"
    • (new file) wp-content/bible-plus-cache/.empty
Filesystem: 17 new files
Database: no new tables, 1 new option
New WordPress options
jwplgbbp_vods

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bible Plus+
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,734 ▲13815.91 ▲0.1910.03 ▼0.2746.78 ▲0.34
Dashboard /wp-admin2,996 ▲626.09 ▲0.11152.30 ▼8.74120.80 ▲15.40
Posts /wp-admin/edit.php2,768 ▲292.72 ▲0.0069.56 ▲3.8585.45 ▲0.48
Add New Post /wp-admin/post-new.php1,610 ▼6218.79 ▲0.06399.35 ▲26.33104.92 ▼1.97
Media Library /wp-admin/upload.php1,839 ▲325.07 ▲0.05155.81 ▼3.05114.54 ▼7.56
Bible+ /wp-admin/admin.php?page=bible-plus1,2102.1063.5282.23
DailyProverb /wp-admin/admin.php?page=daily-proverb2,0292.0858.9981.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 1 option
    • jwplgbbp_vods

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 17× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      include(JWPLGBBP_PATHinc/functions.php): failed to open stream: No such file or directory in wp-content/plugins/bible-plus/load.php on line 36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bible-plus/assets/html/vods.html.php:2
    • > PHP Warning
      Use of undefined constant JWPLGBBP_PATH - assumed 'JWPLGBBP_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bible-plus/load.php on line 34
    • > PHP Warning
      Use of undefined constant JWPLGBBP_PATH - assumed 'JWPLGBBP_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bible-plus/load.php on line 32
    • > PHP Warning
      Use of undefined constant JWPLGBBP_PATH - assumed 'JWPLGBBP_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bible-plus/load.php on line 38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bible-plus/assets/html/admin-footer.html.php:1
    • > PHP Warning
      include(): Failed opening 'JWPLGBBP_PATHinc/functions.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/bible-plus/load.php on line 36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bible-plus/assets/html/admin-home.html.php:2
    • > PHP Warning
      include(): Failed opening 'JWPLGBBP_PATHinc/JWPLGBBP/proverbs.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/bible-plus/load.php on line 34
    • > PHP Warning
      include(JWPLGBBP_PATHinc/JWPLGBBP/proverbs.php): failed to open stream: No such file or directory in wp-content/plugins/bible-plus/load.php on line 34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: bible, embed, daily, proverb

bible-plus/index.php 85% from 13 tests

The main PHP script in "Bible Plus+" version 3.6 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bible-plus.php" instead of "index.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected589 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP968405425
PO File1343492
JavaScript313559
CSS13012
JSON1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity12.00
▷ Minimum class complexity3.00
▷ Maximum class complexity30.00
Average method complexity1.87
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods38
▷ Static methods00.00%
▷ Public methods1847.37%
▷ Protected methods00.00%
▷ Private methods2052.63%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin