62% bibleup

Code Review | BibleUp

WordPress plugin BibleUp scored 62% from 54 tests.

About plugin

  • Plugin page: bibleup
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Feb 9, 2023
  • Latest release: Aug 10, 2023
  • Number of updates: 5
  • Update frequency: every 84.2 days
  • Top authors: bibleup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 421 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.60MB] [CPU: ▼31.71ms] Passed 4 tests

A check of server-side resources used by BibleUp
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2539.94 ▼0.91
Dashboard /wp-admin3.35 ▲0.0424.67 ▼25.91
Posts /wp-admin/edit.php3.35 ▼0.0125.70 ▼22.97
Add New Post /wp-admin/post-new.php3.35 ▼2.5431.18 ▼65.70
Media Library /wp-admin/upload.php3.35 ▲0.1225.01 ▼12.24
BibleUp /wp-admin/options-general.php?page=bibleup-settings3.3526.34

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by BibleUp
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲12413.66 ▼1.0814.34 ▲12.5163.19 ▲21.12
Dashboard /wp-admin2,213 ▲254.92 ▼0.19103.63 ▲1.2142.14 ▼0.48
Posts /wp-admin/edit.php2,090 ▲12.03 ▼0.1035.74 ▼12.4431.91 ▼4.64
Add New Post /wp-admin/post-new.php1,536 ▼023.18 ▲0.09607.84 ▼14.6054.11 ▲2.87
Media Library /wp-admin/upload.php1,392 ▲74.19 ▼0.0294.94 ▼22.0141.65 ▼5.82
BibleUp /wp-admin/options-general.php?page=bibleup-settings1,5074.2378.0432.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/bibleup/wp-settings-framework/wp-settings-framework.php+349
    Undefined index: subtitle
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% 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
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bibleup-settings
    • > Notice in wp-content/plugins/bibleup/wp-settings-framework/wp-settings-framework.php+349
    Undefined index: subtitle

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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bibleup/settings/settings-general.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bibleup/bibleup.php:22

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=bibleup-settings
    • > Network (severe)
    assets/css/jquery-ui-css.css?ver=6.3.1 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please a description for screenshot #5 in bibleup/assets to your readme.txt
You can look at the official readme.txt

bibleup/bibleup.php Passed 13 tests

Analyzing the main PHP file in "BibleUp" version 1.0.1
97 characters long description:
BibleUp transforms Bible References on a webpage into flexible, and highly customisable popovers.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin2,489 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP32703761,203
CSS2156178898
JavaScript1119114388

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 complexity71.50
▷ Minimum class complexity7.00
▷ Maximum class complexity136.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods59
▷ Static methods23.39%
▷ Public methods5898.31%
▷ Protected methods00.00%
▷ Private methods11.69%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
wp-settings-framework/assets/img/logo.png2.17KB1.33KB▼ 38.40%