10% multipurpose-bible-linker-russian-and-ukrainian

Code Review | Plugin Name: Multipurpose Bible Linker

WordPress plugin Plugin Name: Multipurpose Bible Linkerscored10%from 54 tests.

About plugin

  • Plugin page: multipurpose-bibl...
  • Plugin version: 1.7.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.7
  • WordPress version: 6.3.1
  • First release: Dec 17, 2013
  • Latest release: Dec 13, 2016
  • Number of updates: 66
  • Update frequency: every 16.6 days
  • Top authors: Gadfly_svy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,719 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Compile error in wp-content/plugins/multipurpose-bible-linker-russian-and-ukrainian/scripts/bible_sources.php+806
    Declaration of BibleDesktopCom::getVersePart($verse) must be compatible with AllbibleInfo::getVersePart($verse, $translation = '')

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

An overview of server-side resources used by Plugin Name: Multipurpose Bible Linker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.58 ▼4.38
Dashboard /wp-admin3.31 ▼0.0443.57 ▼17.62
Posts /wp-admin/edit.php3.36 ▲0.0044.45 ▼0.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.52 ▼18.24
Media Library /wp-admin/upload.php3.23 ▲0.0033.82 ▼0.94

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Plugin Name: Multipurpose Bible Linker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.70 ▼0.891.76 ▼0.0838.87 ▼4.44
Dashboard /wp-admin2,206 ▲184.82 ▼1.03106.07 ▼2.8240.41 ▼2.71
Posts /wp-admin/edit.php2,089 ▼31.96 ▼0.0533.59 ▼2.4632.60 ▼2.46
Add New Post /wp-admin/post-new.php1,533 ▲523.20 ▲5.07664.58 ▲25.9871.18 ▲17.61
Media Library /wp-admin/upload.php1,391 ▼04.21 ▲0.02100.13 ▼4.0244.07 ▲1.55

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 detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Declaration of BibleDesktopCom::getVersePart($verse) must be compatible with AllbibleInfo::getVersePart($verse, $translation = '') in wp-content/plugins/multipurpose-bible-linker-russian-and-ukrainian/scripts/bible_sources.php on line 806
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/multipurpose-bible-linker-russian-and-ukrainian/wp_config.inc.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multipurpose-bible-linker-russian-and-ukrainian/wp_multibiblelinker.php:32
    • > PHP Fatal error
      Declaration of BibleDesktopCom::getVersePart($verse) must be compatible with AllbibleInfo::getVersePart($verse, $translation = '') in wp-content/plugins/multipurpose-bible-linker-russian-and-ukrainian/scripts/bible_sources.php on line 806

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% 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 your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === Plugin Name: Multipurpose Bible Linker=== )
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Screenshots: Add a description for screenshot #1 in multipurpose-bible-linker-russian-and-ukrainian/assets to your readme.txt
The official readme.txt might help

multipurpose-bible-linker-russian-and-ukrainian/wp_multibiblelinker.php 85% from 13 tests

The primary PHP file in "Plugin Name: Multipurpose Bible Linker" version 1.7.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 240 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("multipurpose-bible-linker-russian-and-ukrainian.php" instead of "wp_multibiblelinker.php")

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
Success! There were no dangerous files found in this plugin6,141 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12961885,811
PO File37272248
JavaScript14068
CSS10014

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity20.63
▷ Minimum class complexity1.00
▷ Maximum class complexity120.00
Average method complexity4.49
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes27
▷ Abstract classes13.70%
▷ Concrete classes2696.30%
▷ Final classes00.00%
Methods157
▷ Static methods42.55%
▷ Public methods13585.99%
▷ Protected methods148.92%
▷ Private methods85.10%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants37
▷ Global constants37100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin