84% wp-unicode

Code Review | WP Unicode

WordPress plugin WP Unicode scored84%from 54 tests.

About plugin

  • Plugin page: wp-unicode
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.4
  • WordPress version: 6.3.1
  • First release: Dec 21, 2015
  • Latest release: Dec 23, 2015
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: abiralneupane (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,618 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.21ms] Passed 4 tests

Server-side resources used by WP Unicode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.77 ▼7.90
Dashboard /wp-admin3.31 ▼0.0443.51 ▼20.52
Posts /wp-admin/edit.php3.36 ▲0.0044.42 ▼0.81
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.67 ▲0.40
Media Library /wp-admin/upload.php3.24 ▲0.0034.30 ▲0.56

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP Unicode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲10813.42 ▼1.164.67 ▲2.9240.71 ▼3.62
Dashboard /wp-admin2,209 ▲215.90 ▲0.0993.50 ▼22.4139.71 ▼3.53
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0136.10 ▼2.3631.72 ▼2.73
Add New Post /wp-admin/post-new.php1,533 ▲1423.16 ▼0.04656.81 ▼24.2554.47 ▼1.46
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0196.03 ▼5.7240.83 ▼3.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 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/wp-unicode/wp-unicode.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

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
1 plugin tags: wp nepali unicode

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

"WP Unicode" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
127 characters long description:
This plugin converts text into Unicode. It only supports Nepali (Indic) Unicode, and the effect can be seen only in Comment box

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
Everything looks great! No dangerous files found in this plugin20 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript14014
PHP1286

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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 images were found in this plugin