84% catholicbible-scripturizer

Code Review | Catholic Bible Scripturizer

WordPress plugin Catholic Bible Scripturizer scored84%from 54 tests.

About plugin

  • Plugin page: catholicbible-scr...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.4
  • WordPress version: 6.3.1
  • First release: Jul 10, 2015
  • Latest release: Jul 11, 2015
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: wcpinho (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,361 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.65ms] Passed 4 tests

Analyzing server-side resources used by Catholic Bible Scripturizer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.04 ▼2.74
Dashboard /wp-admin3.34 ▲0.0349.24 ▼5.70
Posts /wp-admin/edit.php3.39 ▲0.0350.59 ▼2.14
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.78 ▼8.00
Media Library /wp-admin/upload.php3.26 ▲0.0340.17 ▲0.51

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Catholic Bible Scripturizer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.07 ▼0.301.92 ▼0.0046.21 ▼0.37
Dashboard /wp-admin2,195 ▲155.52 ▼0.1892.25 ▼0.8041.76 ▲1.90
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0139.24 ▲1.2434.68 ▼0.72
Add New Post /wp-admin/post-new.php1,537 ▲1118.09 ▼5.59612.23 ▼22.3172.37 ▲8.67
Media Library /wp-admin/upload.php1,394 ▼64.20 ▼0.0098.81 ▼10.3342.14 ▲1.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/catholicbible-scripturizer/catholicbible-scripturizer.php:123

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: vatican, cristo, jesus, catholic, pope...

catholicbible-scripturizer/catholicbible-scripturizer.php Passed 13 tests

The primary PHP file in "Catholic Bible Scripturizer" version 1.0.0 is used by WordPress to initiate all plugin functionality
118 characters long description:
Catholic Bible Scripturizer will convert Bible references in your posts and comments into hyperlinks to online Bibles.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected107 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1108107

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.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
There are no PNG files in this plugin