Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/hukamnama/hukamnama.php+54
Undefined variable: default_api
Server metrics [RAM: ▼0.83MB] [CPU: ▼298.42ms] Passed 4 tests
An overview of server-side resources used by Hukamnama
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 34.70 ▲13.36 |
Dashboard /wp-admin | 2.82 ▼0.24 | 22.89 ▼16.28 |
Posts /wp-admin/edit.php | 2.82 ▼0.29 | 26.37 ▼14.39 |
Add New Post /wp-admin/post-new.php | 2.82 ▼2.61 | 21.37 ▼1,146.90 |
Media Library /wp-admin/upload.php | 2.82 ▼0.19 | 21.21 ▼16.09 |
Settings /wp-admin/admin.php?page=hukamnama-settings | 2.82 | 18.02 |
Hukamnama /wp-admin/admin.php?page=hukamnama | 2.82 | 23.69 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options |
---|
hukamnama_api |
Browser metrics Passed 4 tests
Hukamnama: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,848 ▲242 | 16.63 ▲1.01 | 10.32 ▲1.80 | 50.56 ▲0.05 |
Dashboard /wp-admin | 2,993 ▲140 | 6.13 ▲0.27 | 141.72 ▼17.28 | 113.52 ▲12.02 |
Posts /wp-admin/edit.php | 2,740 ▲37 | 2.70 ▼0.00 | 72.01 ▲9.05 | 104.03 ▲12.14 |
Add New Post /wp-admin/post-new.php | 1,503 ▼354 | 16.89 ▼2.22 | 356.10 ▼10.33 | 105.83 ▲1.76 |
Media Library /wp-admin/upload.php | 1,806 ▲34 | 5.01 ▼0.01 | 149.47 ▼2.11 | 119.19 ▲9.94 |
Settings /wp-admin/admin.php?page=hukamnama-settings | 1,086 | 2.11 | 56.04 | 66.11 |
Hukamnama /wp-admin/admin.php?page=hukamnama | 1,159 | 2.36 | 57.66 | 70.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/hukamnama/hukamnama.php+122
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 1 option
- hukamnama_api
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hukamnama
- > Deprecated in wp-content/plugins/hukamnama/hukamnama.php+123
Function create_function() is deprecated
- > GET request to /wp-admin/admin.php?page=hukamnama-settings
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method Hukamnama::settings_page() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hukamnama
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hukamnama
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/admin.php?page=hukamnama
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method Hukamnama::select_page() should not be called statically
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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/hukamnama/interface/shortcode.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant HOUR_IN_SECONDS - assumed 'HOUR_IN_SECONDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/hukamnama/hukamnama.php on line 30
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/hukamnama/hukamnama.php:32
- > PHP Warning
A non-numeric value encountered in wp-content/plugins/hukamnama/hukamnama.php on line 30
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/hukamnama/interface/settings-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/hukamnama/interface/select-page.php:2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: hukamnama, sikhism, sikh, shortcode, gurbani...
hukamnama/hukamnama.php Passed 13 tests
The main PHP script in "Hukamnama" version 0.5 is automatically included on every request by WordPress
42 characters long description:
Display today's hukamnama using Sikher API
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected437 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 40 | 9 | 198 |
JavaScript | 2 | 44 | 5 | 184 |
CSS | 2 | 9 | 0 | 55 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 14 | |
▷ Static methods | 8 | 57.14% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin