73% devotionalium

Code Review | Devotionalium Daily Verses for Wordpress

WordPress plugin Devotionalium Daily Verses for Wordpress scored 73% from 54 tests.

About plugin

  • Plugin page: devotionalium
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8.1
  • WordPress version: 6.3.1
  • First release: Feb 6, 2018
  • Latest release: Nov 2, 2021
  • Number of updates: 32
  • Update frequency: every 42.7 days
  • Top authors: maxmelzer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,225 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.32MB] [CPU: ▼13.62ms] Passed 4 tests

A check of server-side resources used by Devotionalium Daily Verses for Wordpress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.435.18 ▼39.58
Dashboard /wp-admin3.35 ▲0.0548.28 ▼3.71
Posts /wp-admin/edit.php3.47 ▲0.1152.12 ▲7.54
Add New Post /wp-admin/post-new.php5.93 ▲0.0595.43 ▼13.16
Media Library /wp-admin/upload.php3.28 ▲0.0538.66 ▲1.98
Devotionalium /wp-admin/options-general.php?page=devotionalium3.2730.79

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options
widget_devotionalium
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Devotionalium Daily Verses for Wordpress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.57 ▼0.801.69 ▼0.1440.23 ▼10.94
Dashboard /wp-admin2,210 ▲195.83 ▲0.94102.47 ▼0.7339.45 ▼5.62
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0138.77 ▲2.1734.97 ▲0.56
Add New Post /wp-admin/post-new.php1,517 ▼1617.77 ▼0.42589.59 ▼26.2360.99 ▼2.68
Media Library /wp-admin/upload.php1,392 ▲74.18 ▼0.0498.12 ▼5.1742.18 ▼1.89
Devotionalium /wp-admin/options-general.php?page=devotionalium9892.3023.2829.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_devotionalium
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 17 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=devotionalium
    • > Notice in wp-content/plugins/devotionalium/src/ConfigAccessor.php+128
    Undefined index: devotionalium_version
  • 19 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=devotionalium
    • > Notice in wp-content/plugins/devotionalium/src/ConfigAccessor.php+128
    Undefined index: devotionalium_lang

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/devotionalium/devotionalium.php
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Devotionalium\\Block' not found in wp-content/plugins/devotionalium/src/Block/Setting.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Devotionalium\\Block' not found in wp-content/plugins/devotionalium/src/Block/Settings.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Devotionalium\\Block\\Devotionalium' not found in wp-content/plugins/devotionalium/src/Block/DevotionaliumWidget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/devotionalium/src/Model/Widget.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Devotionalium\\AdminPage' not found in wp-content/plugins/devotionalium/src/Config/Settings.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Devotionalium\\Block' not found in wp-content/plugins/devotionalium/src/Block/Section.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Devotionalium\\Config\\Setting' not found in wp-content/plugins/devotionalium/src/Config/Setting/Select.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Devotionalium\\Block' not found in wp-content/plugins/devotionalium/src/Block/Devotionalium.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Devotionalium\\Block' not found in wp-content/plugins/devotionalium/src/WidgetBlock.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: torah, bible, devotion, watchword, quran...

devotionalium/devotionalium.php Passed 13 tests

"Devotionalium Daily Verses for Wordpress" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
88 characters long description:
Include today's verses from devotionalium.com, with rich support for original languages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,424 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP362796491,402
CSS10022

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.42
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes24
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes00.00%
Methods113
▷ Static methods10.88%
▷ Public methods10391.15%
▷ Protected methods10.88%
▷ Private methods97.96%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants32
▷ Global constants00.00%
▷ Class constants32100.00%
▷ Public constants32100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin