77% enduring-word-bible-commentary

Code Review | Enduring Word Bible Commentary

WordPress plugin Enduring Word Bible Commentary scored77%from 54 tests.

About plugin

  • Plugin page: enduring-word-bib...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.8
  • WordPress version: 6.3.1
  • First release: Jan 3, 2020
  • Latest release: Sep 15, 2021
  • Number of updates: 41
  • Update frequency: every 15.2 days
  • Top authors: Dade Ronan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,376 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.14ms] Passed 4 tests

A check of server-side resources used by Enduring Word Bible Commentary
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.25 ▲2.33
Dashboard /wp-admin3.33 ▲0.0352.87 ▲6.38
Posts /wp-admin/edit.php3.38 ▲0.0245.81 ▼4.41
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.59 ▼19.41
Media Library /wp-admin/upload.php3.25 ▲0.0235.04 ▼3.06

Server storage [IO: ▲0.71MB] [DB: ▲0.10MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: 1 new table, 6 new options
New tables
wp_enduringword
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Enduring Word Bible Commentary: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲19113.70 ▼0.867.93 ▲6.3442.26 ▼0.43
Dashboard /wp-admin2,220 ▲314.91 ▼0.0496.93 ▼13.4276.09 ▲35.69
Posts /wp-admin/edit.php2,100 ▲82.06 ▲0.0235.81 ▼3.7432.63 ▼1.65
Add New Post /wp-admin/post-new.php1,677 ▲14420.05 ▼2.99709.92 ▲72.8263.11 ▲10.77
Media Library /wp-admin/upload.php1,396 ▲54.11 ▼0.0798.37 ▼3.6065.49 ▲23.05

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% 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 0% 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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/enduring-word-bible-commentary/enduring_word.php
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to a member function query() on null in wp-content/plugins/enduring-word-bible-commentary/Includes/end_word_insert_enduringword_bible.php:7
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/enduring-word-bible-commentary/Includes/end_word_insert_enduringword_bible.php on line 4
    • > PHP Warning
      Use of undefined constant ENDURINGWORD_MEDIA_URL - assumed 'ENDURINGWORD_MEDIA_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/enduring-word-bible-commentary/Templates/admin-settings.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/enduring-word-bible-commentary/Includes/end_word_function.php:22
    • > PHP Warning
      Use of undefined constant ENDURINGWORD_MEDIA_URL - assumed 'ENDURINGWORD_MEDIA_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/enduring-word-bible-commentary/Templates/end_word_widget.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/enduring-word-bible-commentary/Templates/admin-settings.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/enduring-word-bible-commentary/Templates/end_word_widget.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: commentary, enduring word, david, chapter, verse...

enduring-word-bible-commentary/enduring_word.php 77% from 13 tests

"Enduring Word Bible Commentary" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("enduring-word-bible-commentary.php" instead of "enduring_word.php")

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
Everything looks great! No dangerous files found in this plugin1,562 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP532101,475
CSS39253
JavaScript20534

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.07
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods321.43%
▷ Public methods1285.71%
▷ Protected methods00.00%
▷ Private methods214.29%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
19 PNG files occupy 0.54MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Screenshots/screenshot-2.png39.10KB11.62KB▼ 70.28%
Screenshots/screenshot-5.png91.73KB25.14KB▼ 72.60%
Assets/media/enduring-word-logo.png18.17KB7.29KB▼ 59.90%
Assets/media/close.png4.00KB1.38KB▼ 65.45%
Assets/media/radio-btn.png5.60KB0.66KB▼ 88.24%