10% daily-christian-bible-verses

Code Review | DAILY CHRISTIAN BIBLE VERSES

WordPress plugin DAILY CHRISTIAN BIBLE VERSES scored 10% from 54 tests.

About plugin

  • Plugin page: daily-christian-b...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 1, 2014
  • Latest release: Mar 17, 2015
  • Number of updates: 9
  • Update frequency: every 29.6 days
  • Top authors: lchrajkumar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,424 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/daily-christian-bible-verses/daily-christian-bible-verses.php+241
    Methods with the same name as their class will not be constructors in a future version of PHP; ChristianBibleVerseWidget has a deprecated constructor

Server metrics [RAM: ▼1.86MB] [CPU: ▼53.57ms] Passed 4 tests

Analyzing server-side resources used by DAILY CHRISTIAN BIBLE VERSES
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.13 ▼1.335.66 ▼38.58
Dashboard /wp-admin2.15 ▼1.165.63 ▼44.90
Posts /wp-admin/edit.php2.15 ▼1.218.99 ▼41.32
Add New Post /wp-admin/post-new.php2.15 ▼3.746.35 ▼89.49
Media Library /wp-admin/upload.php2.15 ▼1.086.22 ▼29.33

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_christianbibleversewidget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

DAILY CHRISTIAN BIBLE VERSES: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.70 ▼0.961.84 ▼0.0147.97 ▼1.67
Dashboard /wp-admin2,209 ▲214.86 ▼0.07106.49 ▼5.6335.97 ▼8.36
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0338.63 ▲0.9435.30 ▼0.01
Add New Post /wp-admin/post-new.php1,514 ▼617.65 ▼5.57681.01 ▼7.5952.36 ▼1.71
Media Library /wp-admin/upload.php1,391 ▼04.21 ▼0.0296.89 ▼4.0942.55 ▼1.21

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 had uncaught errors
    • > Deprecated in wp-content/plugins/daily-christian-bible-verses/daily-christian-bible-verses.php+241
    Methods with the same name as their class will not be constructors in a future version of PHP; ChristianBibleVerseWidget has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_christianbibleversewidget

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/daily-christian-bible-verses/daily-christian-bible-verses.php:32

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Plugin Activation Page.), #2 (Shortcode setup page/post.), #3 (Shortcode display page/post.), #4 (Widget setup page), #5 (Widget display on sidebar.)
  • Requires at least: The plugin version is formatted incorrectly
You can look at the official readme.txt

daily-christian-bible-verses/daily-christian-bible-verses.php 92% from 13 tests

Analyzing the main PHP file in "DAILY CHRISTIAN BIBLE VERSES" version 1.0
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 153 characters long)

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
There were no executable files found in this plugin305 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11824297
CSS1108

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.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%
Functions3
▷ Named functions3100.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