Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼142.83ms] Passed 4 tests
An overview of server-side resources used by Bangla Ramadan Time
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.05 | 42.35 ▲6.03 |
Dashboard /wp-admin | 3.11 ▲0.05 | 50.72 ▲2.37 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 47.88 ▼0.35 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 95.08 ▼572.33 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 35.97 ▼1.02 |
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: 2 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_bangla_ramadan_time_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bangla Ramadan Time
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲121 | 15.92 ▲0.03 | 12.10 ▼2.26 | 50.92 ▲1.22 |
Dashboard /wp-admin | 2,967 ▲36 | 5.89 ▼0.23 | 166.10 ▲10.27 | 114.56 ▼3.33 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.01 | 71.50 ▲2.25 | 87.11 ▼5.49 |
Add New Post /wp-admin/post-new.php | 1,683 ▲68 | 18.26 ▼3.22 | 417.25 ▲101.14 | 116.96 ▲7.47 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▲0.01 | 171.24 ▲10.56 | 120.12 ▲1.76 |
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
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_bangla_ramadan_time_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bangla-ramadan-time/bangla_ramadan_time.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: ramadan, iftar, times, sehri
bangla-ramadan-time/bangla_ramadan_time.php 85% from 13 tests
The main PHP script in "Bangla Ramadan Time" version 21 is automatically included on every request by WordPress
The following require your attention:
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "21")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bangla-ramadan-time.php" instead of "bangla_ramadan_time.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected372 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 67 | 37 | 372 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin