Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.44ms] Passed 4 tests
An overview of server-side resources used by CHP Nepali Date Converter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.70 ▲1.68 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.80 ▼1.14 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.81 ▲0.92 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 100.66 ▲4.34 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.04 ▼3.21 |
CHP Nepali Date Converter /wp-admin/options-general.php?page=chp-nepali-date-converter | 3.48 | 36.77 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_chpdate_widget_theme |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_chpdate_widget |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
CHP Nepali Date Converter: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 13.27 ▼1.13 | 2.05 ▲0.25 | 43.72 ▼0.10 |
Dashboard /wp-admin | 2,208 ▲23 | 5.89 ▲0.02 | 98.29 ▼6.43 | 42.30 ▼3.03 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.06 ▲0.02 | 39.95 ▼1.33 | 39.56 ▲1.50 |
Add New Post /wp-admin/post-new.php | 1,521 ▼21 | 23.40 ▲4.92 | 642.65 ▲52.24 | 58.31 ▲6.46 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.26 ▲0.03 | 97.58 ▼2.99 | 45.00 ▲1.13 |
CHP Nepali Date Converter /wp-admin/options-general.php?page=chp-nepali-date-converter | 1,021 | 2.06 | 27.82 | 72.87 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 8 options
- widget_chpdate_widget
- widget_chpdate_widget_theme
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/chp-nepali-date-converter/chpnpdate.php
- 3× 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/chp-nepali-date-converter/inc/CHPDATETIME_WIDGET.class.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/chp-nepali-date-converter/inc/main.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/chp-nepali-date-converter/inc/CHPDATETIME_WIDGET_THEME.class.php:7
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Donate link: Please fix this invalid url: ""
chp-nepali-date-converter/chpnpdate.php 69% from 13 tests
This is the main PHP file of "CHP Nepali Date Converter" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("chp-nepali-date-converter.php" instead of "chpnpdate.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "5.2")
- Description: Please keep the plugin description shorter than 140 characters (currently 344 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,177 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 138 | 200 | 954 |
CSS | 1 | 24 | 0 | 201 |
JavaScript | 1 | 3 | 5 | 22 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 32.25 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 18 | 51.43% |
▷ Public methods | 30 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.29% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There were not PNG files found in your plugin