84% farsi-bible-verse-of-the-day

Code Review | Farsi Bible Verse of the day

WordPress plugin Farsi Bible Verse of the day scored 84% from 54 tests.

About plugin

  • Plugin page: farsi-bible-verse...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 26, 2022
  • Latest release: Nov 30, 2022
  • Number of updates: 18
  • Update frequency: every 0.3 days
  • Top authors: kolbeh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 497 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.77ms] Passed 4 tests

A check of server-side resources used by Farsi Bible Verse of the day
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.95 ▼0.67
Dashboard /wp-admin3.32 ▲0.0247.86 ▲2.22
Posts /wp-admin/edit.php3.37 ▲0.0244.05 ▼1.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.00 ▼1.60
Media Library /wp-admin/upload.php3.25 ▲0.0233.21 ▲1.13

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_farsi_verse_ofthe_daywidget
widget_farsiverse_ofthedaywidget
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Farsi Bible Verse of the day
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲1313.21 ▼1.241.70 ▲0.0343.49 ▲1.60
Dashboard /wp-admin2,206 ▲34.85 ▼0.98111.94 ▲12.1142.32 ▲4.81
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0135.22 ▲1.1233.07 ▼6.92
Add New Post /wp-admin/post-new.php1,514 ▼617.62 ▼5.57682.65 ▲28.2260.71 ▲6.58
Media Library /wp-admin/upload.php1,391 ▲34.25 ▲0.0493.56 ▼10.9442.26 ▼5.52

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 8 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_farsi_verse_ofthe_daywidget
    • widget_theysaidso_widget
    • widget_farsiverse_ofthedaywidget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

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
Even though everything seems fine, this is not an exhaustive test

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/farsi-bible-verse-of-the-day/farsi-verse-of-the-day.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: farsi verse, verse, farsi, everyday, verse of the day...

farsi-bible-verse-of-the-day/farsi-verse-of-the-day.php 92% from 13 tests

The entry point to "Farsi Bible Verse of the day" version 1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("farsi-bible-verse-of-the-day.php" instead of "farsi-verse-of-the-day.php")

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

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon-128x128.png25.63KB9.17KB▼ 64.21%
screenshot-2.png168.63KB55.75KB▼ 66.94%