Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 34.68 ▼7.14 |
Dashboard /wp-admin | 3.47 ▲0.17 | 44.41 ▼2.62 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 45.44 ▼4.30 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 89.54 ▼11.74 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 35.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 |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
widget_nyasro_nepalidateconverterwidget |
db_upgraded |
ny_date_convert |
can_compress_scripts |
theysaidso_admin_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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲135 | 13.54 ▼1.10 | 7.94 ▲6.22 | 41.26 ▼3.80 |
Dashboard /wp-admin | 2,209 ▲24 | 4.85 ▼0.02 | 107.45 ▼7.36 | 43.95 ▼0.41 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.98 ▼0.05 | 42.49 ▼1.38 | 35.98 ▼0.22 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.08 ▲4.61 | 611.15 ▼12.88 | 50.02 ▼10.21 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.20 ▼0.03 | 97.54 ▼1.17 | 42.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
- > PHP Fatal error
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
Optimizations
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 143 | 53 | 691 |
CSS | 1 | 1 | 0 | 90 |
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 code | 0.30 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 4.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 71.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 28.57% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon.png | 1.66KB | 0.90KB | ▼ 45.94% |