78% bible-link-multilingual

Code Review | Bible Link Multilingual

WordPress plugin Bible Link Multilingual scored 78% from 54 tests.

About plugin

  • Plugin page: bible-link-multil...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-5.7
  • WordPress version: 5.8.1
  • First release: Aug 22, 2020
  • Latest release: Mar 24, 2021
  • Number of updates: 26
  • Update frequency: every 15.6 days
  • Top authors: globalrize (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active / 501 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.86MB] [CPU: ▼175.78ms] Passed 4 tests

An overview of server-side resources used by Bible Link Multilingual
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0638.31 ▼3.34
Dashboard /wp-admin2.79 ▼0.2625.68 ▼25.45
Posts /wp-admin/edit.php2.79 ▼0.3126.60 ▼29.63
Add New Post /wp-admin/post-new.php2.79 ▼2.6424.44 ▼631.83
Media Library /wp-admin/upload.php2.79 ▼0.2121.17 ▼16.20
Bible Link Multilingual /wp-admin/options-general.php?page=blm-plugin2.8023.74

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options
blm_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bible Link Multilingual
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,740 ▲16816.09 ▲0.4923.46 ▲10.9954.31 ▼4.86
Dashboard /wp-admin2,975 ▲445.90 ▼0.12161.47 ▼19.22105.61 ▼16.36
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0176.92 ▲2.8495.65 ▲4.87
Add New Post /wp-admin/post-new.php1,686 ▲7118.43 ▼2.45395.47 ▲75.79110.44 ▼0.73
Media Library /wp-admin/upload.php1,809 ▲25.03 ▲0.01171.91 ▲7.14125.76 ▼1.11
Bible Link Multilingual /wp-admin/options-general.php?page=blm-plugin1,5333.1186.91110.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
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5663
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=blm-plugin
    • > User notice in wp-includes/functions.php+5663
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bible-link-multilingual/plugin.php:49

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

bible-link-multilingual/plugin.php 92% from 13 tests

"Bible Link Multilingual" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("bible-link-multilingual.php" instead of "plugin.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 plugin422 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16837419
JavaScript1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected