84% bibliar-search-in-the-bible

Code Review | Bibliar Search in the Bible

WordPress plugin Bibliar Search in the Bible scored84%from 54 tests.

About plugin

  • Plugin page: bibliar-search-in...
  • Plugin version: 1.0.001
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Jan 2, 2014
  • Latest release: Jan 2, 2014
  • Number of updates: 10
  • Update frequency: every 0.3 days
  • Top authors: Schubert Tonarelli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,493 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.00ms] Passed 4 tests

This is a short check of server-side resources used by Bibliar Search in the Bible
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.94 ▼4.03
Dashboard /wp-admin3.31 ▲0.0047.62 ▲0.41
Posts /wp-admin/edit.php3.36 ▲0.0045.64 ▼3.58
Add New Post /wp-admin/post-new.php5.89 ▲0.00101.96 ▼4.79
Media Library /wp-admin/upload.php3.23 ▲0.0037.36 ▲4.47

Server storage [IO: ▲0.43MB] [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: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bibliar Search in the Bible
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.56 ▲0.181.88 ▲0.0744.47 ▼1.53
Dashboard /wp-admin2,198 ▲215.64 ▼0.0291.69 ▼12.4534.91 ▼13.10
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0536.23 ▼1.5135.22 ▼3.05
Add New Post /wp-admin/post-new.php1,538 ▲1018.48 ▼4.63591.02 ▼76.8667.79 ▼0.78
Media Library /wp-admin/upload.php1,403 ▲34.15 ▼0.1197.04 ▼9.3343.46 ▼5.14

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bibliar-search-in-the-bible/bibliar.php:17

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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot page "Bibliar" with shortcode), #2 (Bible sites locations in Google Map)
The official readme.txt is a good inspiration

bibliar-search-in-the-bible/bibliar.php 92% from 13 tests

The main PHP script in "Bibliar Search in the Bible" version 1.0.001 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bibliar-search-in-the-bible.php" instead of "bibliar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected9 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24119

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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
2 PNG files occupy 0.43MB with 0.26MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png30.69KB13.06KB▼ 57.45%
screenshot-2.png407.01KB144.45KB▼ 64.51%