84% bible-link-multilingual

Code Review | BibleLink Multilingual

WordPress plugin BibleLink Multilingual scored84%from 54 tests.

About plugin

  • Plugin page: bible-link-multil...
  • Plugin version: 1.0.16
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-6.4
  • WordPress version: 6.3.1
  • First release: Aug 22, 2020
  • Latest release: Nov 9, 2023
  • Number of updates: 49
  • Update frequency: every 24.0 days
  • Top authors: globalrize (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /2,604 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.07MB] [CPU: ▼4.47ms] Passed 4 tests

An overview of server-side resources used by BibleLink Multilingual
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.28 ▼9.90
Dashboard /wp-admin3.38 ▲0.0744.58 ▼6.93
Posts /wp-admin/edit.php3.43 ▲0.0749.07 ▲5.54
Add New Post /wp-admin/post-new.php5.96 ▲0.0794.34 ▼1.82
Media Library /wp-admin/upload.php3.30 ▲0.0732.95 ▲0.76
BibleLink Multilingual /wp-admin/options-general.php?page=blm-plugin3.29195.92

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, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
blm_options
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for BibleLink Multilingual
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4013.32 ▼1.3824.48 ▲22.8938.59 ▼6.44
Dashboard /wp-admin2,199 ▲195.62 ▼0.0391.71 ▼1.9941.37 ▲1.57
Posts /wp-admin/edit.php2,104 ▲11.96 ▼0.0441.20 ▲2.9535.39 ▼1.06
Add New Post /wp-admin/post-new.php1,529 ▲323.15 ▼0.42585.89 ▼34.2261.44 ▲14.14
Media Library /wp-admin/upload.php1,398 ▼54.26 ▲0.0898.52 ▲0.3041.34 ▼0.08
BibleLink Multilingual /wp-admin/options-general.php?page=blm-plugin1,3172.4843.4332.43

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
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • theysaidso_admin_options
    • blm_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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:45

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 (12 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

"BibleLink Multilingual" version 1.0.16'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 plugin406 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16436403
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.36
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%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.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