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.38MB] [CPU: ▼1.16ms] Passed 4 tests
Server-side resources used by Nepali Date Converter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 42.44 ▲3.06 |
Dashboard /wp-admin | 3.68 ▲0.38 | 49.75 ▲3.66 |
Posts /wp-admin/edit.php | 3.79 ▲0.44 | 46.26 ▲0.98 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.38 | 91.68 ▼12.34 |
Media Library /wp-admin/upload.php | 3.60 ▲0.38 | 36.61 ▲5.40 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_widget_nepali_date_converter |
can_compress_scripts |
widget_recent-posts |
widget_widget_ndc_today |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Nepali Date Converter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.35 ▼1.02 | 1.76 ▲0.03 | 44.43 ▲2.15 |
Dashboard /wp-admin | 2,203 ▲15 | 5.76 ▼0.08 | 97.47 ▼6.60 | 38.14 ▼3.38 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.05 ▲0.01 | 34.85 ▲0.23 | 32.24 ▼2.70 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.53 ▼4.84 | 623.89 ▼41.94 | 50.69 ▼15.22 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.22 ▲0.04 | 100.14 ▼2.41 | 43.74 ▼1.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_widget_ndc_today
- widget_widget_nepali_date_converter
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
Please take a closer look at the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/nepali-date-converter/inc/widgets/widget-today-date.php
- > /wp-content/plugins/nepali-date-converter/inc/widgets/widget-nepali-date-converter.php
- > /wp-content/plugins/nepali-date-converter/nepali-date-converter.php
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nepali-date-converter/inc/hooks/wp-ajax.php:2
- > PHP Warning
require_once(NEPALI_DATE_CONVERTER_PATHinc/frameworks/nepali-calendar/nepali_calendar.php): failed to open stream: No such file or directory in wp-content/plugins/nepali-date-converter/inc/init.php on line 5
- > PHP Warning
Use of undefined constant NEPALI_DATE_CONVERTER_PATH - assumed 'NEPALI_DATE_CONVERTER_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/nepali-date-converter/inc/init.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/nepali-date-converter/inc/shortcode/shortcode-nepali-date-converter.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nepali-date-converter/inc/class/ndc-post-date.php:91
- > PHP Fatal error
require_once(): Failed opening required 'NEPALI_DATE_CONVERTER_PATHinc/frameworks/nepali-calendar/nepali_calendar.php' (include_path='.:/usr/share/php') in wp-content/plugins/nepali-date-converter/inc/init.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/nepali-date-converter/inc/shortcode/shortcode-today-date.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: nepali post date, nepal, nepali date converter, english to nepali date converter, post date nepal...
nepali-date-converter/nepali-date-converter.php Passed 13 tests
This is the main PHP file of "Nepali Date Converter" version 2.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
75 characters long description:
Convert English to Nepali Date and Vice Versa and Post Date to Nepali Date.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,932 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 273 | 689 | 1,932 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
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 | 31.60 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 3 | 7.32% |
▷ Public methods | 37 | 90.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 9.76% |
Functions | 22 | |
▷ Named functions | 22 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected