84% daily-readings

Code Review | Daily Readings

WordPress plugin Daily Readings scored84%from 54 tests.

About plugin

  • Plugin page: daily-readings
  • Plugin version: 2.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Jan 29, 2021
  • Latest release: Nov 12, 2023
  • Number of updates: 53
  • Update frequency: every 19.2 days
  • Top authors: acesco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,778 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 gracefully, with no errors

Server metrics [RAM: ▲0.22MB] [CPU: ▲0.46ms] Passed 4 tests

A check of server-side resources used by Daily Readings
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2236.49 ▼3.58
Dashboard /wp-admin3.53 ▲0.2245.31 ▲1.91
Posts /wp-admin/edit.php3.64 ▲0.2849.54 ▲3.67
Add New Post /wp-admin/post-new.php6.11 ▲0.2293.41 ▲8.04
Media Library /wp-admin/upload.php3.45 ▲0.2234.02 ▼0.16

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Daily Readings
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,979 ▲21715.50 ▲1.1510.77 ▲9.0139.51 ▼9.34
Dashboard /wp-admin2,223 ▲435.83 ▲0.18100.15 ▲6.0640.97 ▼6.14
Posts /wp-admin/edit.php2,128 ▲282.56 ▲0.6146.96 ▲6.5436.49 ▼3.12
Add New Post /wp-admin/post-new.php1,705 ▲17923.57 ▲0.55659.74 ▼35.6328.09 ▼29.08
Media Library /wp-admin/upload.php1,431 ▲315.33 ▲1.10103.93 ▼1.2842.40 ▼5.35

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_daily_readings
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/daily-readings/includes/widget.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/daily-readings/includes/settings.php:449
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/daily-readings/includes/settings.php:449

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Please delete some tags, you are using 34 tag instead of maximum 10
Please take inspiration from this readme.txt

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

The entry point to "Daily Readings" version 2.6 is a PHP file that has certain tags in its header comment area
75 characters long description:
A plugin that provides the Mass Daily Readings according to different rites

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
Everything looks great! No dangerous files found in this plugin1,940 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP318032730
HTML1850477
PO File3126150340
JavaScript411014295
CSS129498

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity101.50
▷ Minimum class complexity35.00
▷ Maximum class complexity168.00
Average method complexity9.38
▷ Minimum method complexity1.00
▷ Maximum method complexity83.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin