Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.34ms] Passed 4 tests
An overview of server-side resources used by Daily Hadith
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.20 ▲3.01 |
Dashboard /wp-admin | 3.34 ▼0.00 | 50.42 ▼18.25 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 49.01 ▲0.14 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 87.56 ▼13.36 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 36.80 ▼1.89 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_daily_hadith_widget_bangla |
db_upgraded |
widget_recent-comments |
widget_daily_hadith_widget_english |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Daily Hadith
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.44 ▲0.05 | 1.98 ▼0.15 | 42.33 ▼4.50 |
Dashboard /wp-admin | 2,195 ▲15 | 5.55 ▼0.12 | 85.43 ▼11.73 | 43.12 ▼2.12 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 1.98 ▼0.07 | 37.39 ▼0.21 | 35.38 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,532 ▲1 | 23.14 ▲0.08 | 670.95 ▲2.31 | 62.23 ▲11.02 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.28 ▲0.09 | 97.19 ▼2.98 | 44.52 ▼2.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- widget_daily_hadith_widget_bangla
- can_compress_scripts
- widget_daily_hadith_widget_english
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× 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/daily-hadith/daily_hadith.php:16
- > 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 errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: quran, hadith
daily-hadith/daily_hadith.php 92% from 13 tests
Analyzing the main PHP file in "Daily Hadith" version 1.0
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("daily-hadith.php" instead of "daily_hadith.php")
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 plugin268 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 60 | 34 | 151 |
CSS | 1 | 5 | 1 | 117 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
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 | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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 files were detected