10% daily-verse

Code Review | Verse of the Day

WordPress plugin Verse of the Day scored10%from 54 tests.

About plugin

  • Plugin page: daily-verse
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 19, 2017
  • Latest release: Jul 14, 2021
  • Number of updates: 7
  • Update frequency: every 208.0 days
  • Top authors: bibliatodo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /6,448 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/daily-verse/dv-daily-verse.php+101
    Function create_function() is deprecated

Server metrics [RAM: ▼1.93MB] [CPU: ▼55.90ms] Passed 4 tests

An overview of server-side resources used by Verse of the Day
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.27 ▼39.83
Dashboard /wp-admin2.08 ▼1.226.32 ▼49.32
Posts /wp-admin/edit.php2.08 ▼1.285.31 ▼45.97
Add New Post /wp-admin/post-new.php2.08 ▼3.816.03 ▼88.47
Media Library /wp-admin/upload.php2.08 ▼1.154.85 ▼31.11

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_dv_daily_versewidget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Verse of the Day
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.38 ▲0.091.58 ▼0.5840.65 ▼6.89
Dashboard /wp-admin2,195 ▲295.63 ▼0.1591.30 ▼39.8839.28 ▼8.28
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0837.29 ▼2.2534.60 ▼2.46
Add New Post /wp-admin/post-new.php1,526 ▼022.97 ▲0.17642.78 ▼8.5253.75 ▲1.46
Media Library /wp-admin/upload.php1,403 ▲64.17 ▲0.0898.32 ▼3.4146.53 ▲3.99

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/daily-verse/dv-daily-verse.php+101
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_dv_daily_versewidget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/daily-verse/dv-daily-verse.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: These screenshots lack descriptions #2, #3 in daily-verse/assets to your readme.txt
The official readme.txt is a good inspiration

daily-verse/dv-daily-verse.php 92% from 13 tests

The entry point to "Verse of the Day" version 2.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("daily-verse.php" instead of "dv-daily-verse.php")

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 line of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected