84% kawthulei

Code Review | Kawthulei

WordPress plugin Kawthulei scored 84% from 54 tests.

About plugin

  • Plugin page: kawthulei
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Feb 26, 2013
  • Latest release: Aug 17, 2014
  • Number of updates: 17
  • Update frequency: every 31.6 days
  • Top authors: ben011 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 922 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.79ms] Passed 4 tests

Server-side resources used by Kawthulei
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.31 ▼30.36
Dashboard /wp-admin3.33 ▲0.0253.21 ▲0.23
Posts /wp-admin/edit.php3.38 ▲0.0247.77 ▼1.13
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.03 ▼3.88
Media Library /wp-admin/upload.php3.25 ▲0.0241.81 ▲2.81

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Kawthulei
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲1314.64 ▲1.362.01 ▼11.9984.40 ▲36.71
Dashboard /wp-admin2,206 ▼05.79 ▼0.08100.26 ▼4.2840.98 ▲2.30
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0438.92 ▼0.2436.05 ▲1.44
Add New Post /wp-admin/post-new.php1,534 ▲2023.11 ▲5.58743.72 ▲74.8662.87 ▲13.07
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.01110.24 ▲7.5648.21 ▲5.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kawthulei/kawthulei.php:78

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: kawthulei, karen language, pwo karen, sgaw karen

kawthulei/kawthulei.php 92% from 13 tests

The main PHP file in "Kawthulei" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 345 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin3,469 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
SVG1003,372
PHP23813251
CSS314346

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.03
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 are no PNG files in this plugin