89% tamil-thirukural

Code Review | Tamil Thirukural

WordPress plugin Tamil Thirukural scored89%from 54 tests.

About plugin

  • Plugin page: tamil-thirukural
  • Plugin version: 4.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 6.3.1
  • First release: Dec 21, 2012
  • Latest release: May 12, 2019
  • Number of updates: 16
  • Update frequency: every 145.9 days
  • Top authors: sandeepdude (75%)Hareesh Pillai (31.25%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /2,700 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.19ms] Passed 4 tests

This is a short check of server-side resources used by Tamil Thirukural
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.59 ▼7.80
Dashboard /wp-admin3.36 ▲0.0248.74 ▼9.96
Posts /wp-admin/edit.php3.42 ▲0.0644.07 ▼1.16
Add New Post /wp-admin/post-new.php5.95 ▲0.0684.67 ▼9.82
Media Library /wp-admin/upload.php3.29 ▲0.0636.60 ▲3.00

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: 2 new tables, 7 new options
New tables
wp_thirukural
wp_thirukural_explanation
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_thirukural_widget

Browser metrics Passed 4 tests

A check of browser resources used by Tamil Thirukural
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.34 ▲0.061.88 ▼0.5539.54 ▼11.06
Dashboard /wp-admin2,198 ▲185.70 ▲0.0384.25 ▼3.8137.35 ▲0.43
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0536.34 ▼4.6232.24 ▼8.03
Add New Post /wp-admin/post-new.php1,526 ▼222.82 ▼0.34593.25 ▼6.5763.94 ▼16.77
Media Library /wp-admin/upload.php1,394 ▼94.15 ▼0.0696.95 ▼3.7741.74 ▼6.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_thirukural_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

tamil-thirukural/Thirukural.php 85% from 13 tests

Analyzing the main PHP file in "Tamil Thirukural" version 4.0
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tamil-thirukural.php" instead of "Thirukural.php")
  • Description: The description should be shorter than 140 characters (currently 254 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected232 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24855212
CSS14020

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity8.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.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%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.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
There were not PNG files found in your plugin