10% thaana-wp

Code Review | Thaana WP

WordPress plugin Thaana WP scored10%from 54 tests.

About plugin

  • Plugin page: thaana-wp
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5
  • WordPress version: 6.3.1
  • First release: Sep 28, 2014
  • Latest release: Sep 28, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: reallynattu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,713 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/thaana-wp/ThaanaWp_Plugin.php+30
    count(): Parameter must be an array or an object that implements Countable

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.04ms] Passed 4 tests

Server-side resources used by Thaana WP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0936.88 ▼1.73
Dashboard /wp-admin3.40 ▲0.1047.15 ▼7.79
Posts /wp-admin/edit.php3.52 ▲0.1646.58 ▼1.10
Add New Post /wp-admin/post-new.php6.00 ▲0.1187.70 ▼9.53
Media Library /wp-admin/upload.php3.33 ▲0.1037.31 ▲1.03
Thaana WP /wp-admin/plugins.php?page=ThaanaWp_PluginSettings3.3938.89

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 10 new options
New WordPress options
can_compress_scripts
widget_recent-posts
ThaanaWp_Plugin_isEnabled
ThaanaWp_Plugin__version
theysaidso_admin_options
db_upgraded
widget_recent-comments
ThaanaWp_Plugin__installed
ThaanaWp_Plugin_KeyboardType
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Thaana WP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.35 ▲0.151.58 ▼0.2239.43 ▼0.05
Dashboard /wp-admin2,209 ▲315.70 ▲0.0782.07 ▼31.6334.56 ▼8.33
Posts /wp-admin/edit.php2,111 ▲112.09 ▲0.1235.94 ▲0.1233.22 ▼0.77
Add New Post /wp-admin/post-new.php1,540 ▲1223.39 ▲0.43647.42 ▲49.6349.19 ▼1.64
Media Library /wp-admin/upload.php1,414 ▲144.31 ▲0.08104.11 ▲8.6244.57 ▲1.75
Thaana WP /wp-admin/plugins.php?page=ThaanaWp_PluginSettings9111.6923.4929.63

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
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • ThaanaWp_Plugin_isEnabled
    • ThaanaWp_Plugin__version
    • ThaanaWp_Plugin__installed
    • ThaanaWp_Plugin_KeyboardType
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/thaana-wp/thaana-wp.php:67

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 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Editor Window), #2 (Settings Page)
  • Donate link: Please fix this invalid URI: ""
The official readme.txt is a good inspiration

thaana-wp/thaana-wp.php Passed 13 tests

The main PHP script in "Thaana WP" version 0.1 is automatically included on every request by WordPress
89 characters long description:
Thaana keyboard support for Posts/Pages. Created using JTK by Jawish Hameed (jawish.org).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected531 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP8176527506
CSS14025

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity9.17
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity1.69
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes233.33%
▷ Concrete classes466.67%
▷ Final classes00.00%
Methods74
▷ Static methods00.00%
▷ Public methods4662.16%
▷ Protected methods2837.84%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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.11MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png69.03KB20.54KB▼ 70.24%
screenshot-2.png48.30KB12.03KB▼ 75.10%