84% convert-number-in-tibetan

Code Review | Convert Number in Tibetan

WordPress plugin Convert Number in Tibetan scored84%from 54 tests.

About plugin

  • Plugin page: convert-number-in...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Dec 4, 2017
  • Latest release: Jan 7, 2020
  • Number of updates: 6
  • Update frequency: every 128.0 days
  • Top authors: bhod (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /673 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.54ms] Passed 4 tests

This is a short check of server-side resources used by Convert Number in Tibetan
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.87 ▼0.00
Dashboard /wp-admin3.33 ▲0.0349.39 ▼0.00
Posts /wp-admin/edit.php3.38 ▲0.0344.53 ▼4.89
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.47 ▼9.23
Media Library /wp-admin/upload.php3.25 ▲0.0334.45 ▼4.02
Tibetan Date Format /wp-admin/options-general.php?page=translate-to-tb3.2230.48

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Convert Number in Tibetan
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.81 ▲0.221.70 ▼0.2846.42 ▲1.14
Dashboard /wp-admin2,213 ▲245.83 ▲0.9296.74 ▼11.9939.64 ▼7.09
Posts /wp-admin/edit.php2,093 ▲42.05 ▼0.0034.89 ▼6.7131.40 ▼4.61
Add New Post /wp-admin/post-new.php1,550 ▲3618.26 ▲0.67591.95 ▼126.2061.88 ▲7.41
Media Library /wp-admin/upload.php1,392 ▲74.22 ▲0.0198.17 ▼7.3643.61 ▼2.61
Tibetan Date Format /wp-admin/options-general.php?page=translate-to-tb8252.0724.0539.89

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/convert-number-in-tibetan/inc/admin.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/convert-number-in-tibetan/inc/admin.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/convert-number-in-tibetan/inc/display.php:28

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

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: comment number in tibetan, english to tibetan date and time, number in tibetan

convert-number-in-tibetan/convert-number-in-tibetan.php Passed 13 tests

"Convert Number in Tibetan" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
78 characters long description:
This plugin will help you to display date in Tibetan date format and language.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin90 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3282490

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin