84% daily-bible-readings

Code Review | Daily Bible Readings

WordPress plugin Daily Bible Readings scored84%from 54 tests.

About plugin

  • Plugin page: daily-bible-readings
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.5-5.6
  • WordPress version: 6.3.1
  • First release: Apr 12, 2018
  • Latest release: Feb 12, 2021
  • Number of updates: 15
  • Update frequency: every 69.1 days
  • Top authors: paulschlueter (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,040 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.97ms] Passed 4 tests

This is a short check of server-side resources used by Daily Bible Readings
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.94 ▼1.78
Dashboard /wp-admin3.36 ▲0.0654.15 ▼1.06
Posts /wp-admin/edit.php3.48 ▲0.1256.24 ▲12.72
Add New Post /wp-admin/post-new.php5.94 ▲0.0686.31 ▼12.31
Media Library /wp-admin/upload.php3.29 ▲0.0636.93 ▲3.28

Server storage [IO: ▲0.03MB] [DB: ▲0.31MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Daily Bible Readings: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲13613.39 ▼0.969.66 ▲8.0042.72 ▼4.15
Dashboard /wp-admin2,189 ▲125.62 ▼0.0596.31 ▼3.6242.83 ▼2.59
Posts /wp-admin/edit.php2,103 ▼02.00 ▼0.0337.94 ▲0.5132.09 ▲0.84
Add New Post /wp-admin/post-new.php1,537 ▼018.27 ▲0.01639.58 ▲4.3978.92 ▲22.10
Media Library /wp-admin/upload.php1,403 ▼04.18 ▼0.1196.54 ▼5.3544.89 ▲1.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Interface 'DBR_iWebServiceDataSource' not found in wp-content/plugins/daily-bible-readings/includes/class-dbr-antiochian-webservice.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Donate link: Invalid url: "paypal.me/PaulSchlueter"
Please take inspiration from this readme.txt

daily-bible-readings/daily-bible-readings.php Passed 13 tests

Analyzing the main PHP file in "Daily Bible Readings" version 1.0.3
115 characters long description:
This plugin allows you to post the current day's readings and fasting rule from antiochian.org on your own website.

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
There were no executable files found in this plugin270 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP964249264
JavaScript21116

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity3.62
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods35
▷ Static methods12.86%
▷ Public methods3394.29%
▷ Protected methods00.00%
▷ Private methods25.71%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants111.11%
▷ Class constants888.89%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin