88% bijbelteksten

Code Review | Bijbel Plugin voor Wordpress

WordPress plugin Bijbel Plugin voor Wordpress scored 88% from 54 tests.

About plugin

  • Plugin page: bijbelteksten
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 5.8.1
  • First release: Dec 25, 2014
  • Latest release: Apr 26, 2018
  • Number of updates: 21
  • Update frequency: every 58.0 days
  • Top authors: rhadders (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 820 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼139.65ms] Passed 4 tests

This is a short check of server-side resources used by Bijbel Plugin voor Wordpress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.92 ▲0.1944.02 ▲21.86
Dashboard /wp-admin3.14 ▲0.0849.33 ▼11.41
Posts /wp-admin/edit.php3.19 ▲0.0850.93 ▲2.21
Add New Post /wp-admin/post-new.php5.50 ▲0.07104.45 ▼547.15
Media Library /wp-admin/upload.php3.08 ▲0.0741.14 ▼2.23

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 57 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Bijbel Plugin voor Wordpress: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,050 ▲45416.87 ▲1.3537.39 ▲27.5551.75 ▼2.62
Dashboard /wp-admin2,993 ▲625.94 ▼0.04147.83 ▼24.57125.42 ▲9.07
Posts /wp-admin/edit.php2,788 ▲492.70 ▼0.0167.45 ▲3.2997.57 ▼6.52
Add New Post /wp-admin/post-new.php1,514 ▲1416.68 ▼1.89303.48 ▼92.02120.67 ▼4.32
Media Library /wp-admin/upload.php1,855 ▲485.03 ▲0.00154.69 ▼8.39107.22 ▼33.45

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/bijbelteksten/bible-versions/bg.php
    • > /wp-content/plugins/bijbelteksten/bverse-convert.php
    • > /wp-content/plugins/bijbelteksten/bible-versions/biblia.php
    • > /wp-content/plugins/bijbelteksten/bible-versions/bibles.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bijbelteksten/includes/shortcodes/shortcode-bibles.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bijbelteksten/includes/shortcodes/shortcode-bg.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bijbelteksten/includes/shortcodes/shortcode-biblia.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: bijbelteksten, bijbel

bijbelteksten/bverse-convert.php 92% from 13 tests

The principal PHP file in "Bijbel Plugin voor Wordpress" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bijbelteksten.php" instead of "bverse-convert.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
No dangerous file extensions were detected19,358 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions21100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 1.37MB with 0.81MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Lightbox.png481.41KB152.88KB▼ 68.24%
img/TopSprites.png2.86KB0.25KB▼ 91.09%
Instellingen.png179.07KB55.14KB▼ 69.21%
screenshot-2.png481.41KB152.88KB▼ 68.24%