84% tamil-quotes

Code Review | Tamil Quotes

WordPress plugin Tamil Quotes scored84%from 54 tests.

About plugin

  • Plugin page: tamil-quotes
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Nov 11, 2020
  • Latest release: Nov 11, 2020
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: worldfacts (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /319 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: ▼8.43ms] Passed 4 tests

Analyzing server-side resources used by Tamil Quotes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.82 ▼1.47
Dashboard /wp-admin3.33 ▲0.0244.43 ▼2.97
Posts /wp-admin/edit.php3.38 ▲0.0250.75 ▲2.88
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.23 ▼23.19
Media Library /wp-admin/upload.php3.25 ▲0.0237.50 ▼6.08
Tamil Quotes /wp-admin/options-general.php?page=tmlquotes_mskc_topt3.2230.40

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
tmlquotes_text_color
tmlquotes_bg_color
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Tamil Quotes: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.70 ▼0.451.64 ▼0.0740.98 ▼5.91
Dashboard /wp-admin2,226 ▲355.19 ▲0.28111.34 ▼2.2339.90 ▲0.98
Posts /wp-admin/edit.php2,096 ▲72.35 ▲0.3641.40 ▲1.3935.59 ▲0.32
Add New Post /wp-admin/post-new.php1,544 ▼018.70 ▲0.38590.25 ▼40.3934.07 ▼23.51
Media Library /wp-admin/upload.php1,415 ▲304.30 ▲0.1393.27 ▼11.5141.99 ▼2.97
Tamil Quotes /wp-admin/options-general.php?page=tmlquotes_mskc_topt1,0612.2148.1756.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 8 options in the database
    • tmlquotes_text_color
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • tmlquotes_bg_color
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/tamil-quotes/options.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tamil-quotes/tamil-quotes.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: tamil, quotes, kavithai

tamil-quotes/tamil-quotes.php Passed 13 tests

This is the main PHP file of "Tamil Quotes" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
68 characters long description:
Display Random Tamil SMS kavithai and Quotes on your Wordpress Site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected150 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP31826113
JavaScript21037

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected