10% link-to-bible

Code Review | Link To Bible

WordPress plugin Link To Bible scored10%from 54 tests.

About plugin

  • Plugin page: link-to-bible
  • Plugin version: 2.5.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.1-5.8
  • WordPress version: 6.3.1
  • First release: Dec 11, 2011
  • Latest release: Jun 30, 2021
  • Number of updates: 148
  • Update frequency: every 23.7 days
  • Top authors: thomask777 (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

200+ active /9,212 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/link-to-bible/ltb.php+460
    Undefined index: LTB_VERSION

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

A check of server-side resources used by Link To Bible
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.11580.25 ▲540.06
Dashboard /wp-admin3.40 ▲0.09469.83 ▲419.08
Posts /wp-admin/edit.php3.37 ▲0.0145.39 ▼4.79
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.39 ▼6.98
Media Library /wp-admin/upload.php3.24 ▲0.0133.32 ▲1.53
Link To Bible /wp-admin/options-general.php?page=ltb_plugin3.2131.18

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
ltb_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Link To Bible
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲5914.82 ▲0.441.77 ▲0.1237.36 ▼11.68
Dashboard /wp-admin2,210 ▲255.80 ▲0.70101.18 ▼3.3739.51 ▼2.50
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0033.53 ▼8.3034.21 ▲1.06
Add New Post /wp-admin/post-new.php1,545 ▲3118.36 ▲0.80596.18 ▲0.4261.63 ▲4.73
Media Library /wp-admin/upload.php1,386 ▼24.21 ▼0.0297.67 ▲0.2940.31 ▼1.82
Link To Bible /wp-admin/options-general.php?page=ltb_plugin1,0391.7637.0541.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • ltb_options
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/link-to-bible/ltb.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: bibelstelle, bible, bibleservercom, bible reference, bibel...

link-to-bible/ltb.php 85% from 13 tests

The main PHP script in "Link To Bible" version 2.5.9 is automatically included on every request by WordPress
It is important to fix the following:
  • 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
  • Main file name: Name the main plugin file the same as the plugin slug ("link-to-bible.php" instead of "ltb.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
Everything looks great! No dangerous files found in this plugin593 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP15669368
JSON200173
PO File118052

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin