84% nyasro-nepali-date-converter

Code Review | Nyasro Nepali Date Converter

WordPress plugin Nyasro Nepali Date Converter scored84%from 54 tests.

About plugin

  • Plugin page: nyasro-nepali-dat...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.4.2
  • WordPress version: 6.3.1
  • First release: Jun 25, 2013
  • Latest release: Jul 5, 2020
  • Number of updates: 28
  • Update frequency: every 91.7 days
  • Top authors: nyasro (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /3,698 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼6.45ms] Passed 4 tests

This is a short check of server-side resources used by Nyasro Nepali Date Converter
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1834.68 ▼7.14
Dashboard /wp-admin3.47 ▲0.1744.41 ▼2.62
Posts /wp-admin/edit.php3.58 ▲0.2345.44 ▼4.30
Add New Post /wp-admin/post-new.php6.05 ▲0.1789.54 ▼11.74
Media Library /wp-admin/upload.php3.39 ▲0.1735.89 ▲0.97

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Nyasro Nepali Date Converter
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲13513.54 ▼1.107.94 ▲6.2241.26 ▼3.80
Dashboard /wp-admin2,209 ▲244.85 ▼0.02107.45 ▼7.3643.95 ▼0.41
Posts /wp-admin/edit.php2,089 ▼31.98 ▼0.0542.49 ▼1.3835.98 ▼0.22
Add New Post /wp-admin/post-new.php1,534 ▲623.08 ▲4.61611.15 ▼12.8850.02 ▼10.21
Media Library /wp-admin/upload.php1,388 ▲64.20 ▼0.0397.54 ▼1.1742.86 ▼1.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_nyasro_nepalidateconverterwidget
    • ny_date_convert
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/nyasro-nepali-date-converter/Nyasro_NDC_ClassWidget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/nyasro-nepali-date-converter/Nyasro_NDC_ClassWidget.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: nyasro, nepali, nepal, nepali date converter, date converter...

nyasro-nepali-date-converter/nyasro-nepali-date-converter.php Passed 13 tests

"Nyasro Nepali Date Converter" version 2.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
51 characters long description:
Convert Nepali to English or English to Nepali Date

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin781 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of 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.30
Average class complexity24.00
▷ Minimum class complexity4.00
▷ Maximum class complexity37.00
Average method complexity4.29
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1571.43%
▷ Protected methods00.00%
▷ Private methods628.57%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png1.66KB0.90KB▼ 45.94%