89% thalaivarin-sinthanai

Code Review | Thalaivarin Sinthanai

WordPress plugin Thalaivarin Sinthanai scored89%from 54 tests.

About plugin

  • Plugin page: thalaivarin-sinth...
  • 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: Mar 10, 2020
  • Latest release: Mar 10, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: nilavan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /338 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.90ms] Passed 4 tests

An overview of server-side resources used by Thalaivarin Sinthanai
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.77 ▲2.05
Dashboard /wp-admin3.34 ▲0.0443.02 ▼6.33
Posts /wp-admin/edit.php3.39 ▲0.0444.41 ▼2.68
Add New Post /wp-admin/post-new.php5.92 ▲0.0483.38 ▼8.62
Media Library /wp-admin/upload.php3.26 ▲0.0435.60 ▲4.31

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: 1 new table, 7 new options
New tables
wp_sinthanai
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_sinthanai_widget
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Thalaivarin Sinthanai
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.16 ▼1.491.75 ▼0.0737.33 ▼4.70
Dashboard /wp-admin2,200 ▲125.83 ▼0.05100.75 ▼9.1940.67 ▼1.24
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0336.16 ▼2.5130.47 ▼7.47
Add New Post /wp-admin/post-new.php1,514 ▼2017.53 ▼5.61645.93 ▼34.3653.72 ▲1.86
Media Library /wp-admin/upload.php1,391 ▲34.25 ▲0.0396.82 ▼3.8542.53 ▲1.47

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_sinthanai_widget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

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

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

thalaivarin-sinthanai/Sinthanai.php 92% from 13 tests

The main file in "Thalaivarin Sinthanai" v. 4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 ("thalaivarin-sinthanai.php" instead of "Sinthanai.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin147 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24154127
CSS14020

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity4.50
▷ 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%
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