89% daily-quotes-kural

Code Review | Daily Quotes Kural

WordPress plugin Daily Quotes Kural scored89%from 54 tests.

About plugin

  • Plugin page: daily-quotes-kural
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Aug 8, 2017
  • Latest release: Feb 21, 2020
  • Number of updates: 7
  • Update frequency: every 132.3 days
  • Top authors: gsuryalss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /827 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
Install script ran successfully

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

A check of server-side resources used by Daily Quotes Kural
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.20 ▲0.7440.27 ▼0.53
Dashboard /wp-admin4.05 ▲0.7450.10 ▲1.04
Posts /wp-admin/edit.php4.10 ▲0.7449.25 ▲3.86
Add New Post /wp-admin/post-new.php6.63 ▲0.7493.52 ▼4.64
Media Library /wp-admin/upload.php3.97 ▲0.7435.84 ▲3.25

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_thirukkural_randomwidget
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Daily Quotes Kural
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.72 ▼0.581.82 ▼0.3940.24 ▼7.38
Dashboard /wp-admin2,209 ▲244.86 ▼0.04112.00 ▲3.9743.34 ▼1.86
Posts /wp-admin/edit.php2,092 ▲32.03 ▼0.0140.22 ▲3.5936.72 ▲4.88
Add New Post /wp-admin/post-new.php1,520 ▼823.21 ▲5.01597.97 ▲2.4658.10 ▼3.61
Media Library /wp-admin/upload.php1,391 ▼04.27 ▼0.0296.83 ▼6.2141.59 ▼6.29

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_thirukkural_randomwidget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 27 tag instead of maximum 10
Please take inspiration from this readme.txt

daily-quotes-kural/daily_quotes_kural.php 92% from 13 tests

The main PHP script in "Daily Quotes Kural" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("daily-quotes-kural.php" instead of "daily_quotes_kural.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
Everything looks great! No dangerous files found in this plugin6,617 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12842116,617

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.12
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
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
No PNG files were detected