Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.14MB] [CPU: ▼10.82ms] Passed 4 tests
A check of server-side resources used by Jhakkas Elements
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▼0.61 | 17.71 ▼24.97 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.65 ▼4.82 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.73 ▼1.55 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.46 ▼11.94 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.00 ▲5.83 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Jhakkas Elements
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,474 ▼261 | 14.77 ▲0.78 | 0.60 ▼1.35 | 17.01 ▼25.15 |
Dashboard /wp-admin | 2,224 ▲33 | 5.88 ▲0.98 | 109.10 ▼2.84 | 40.33 ▼7.36 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.06 ▲0.03 | 40.89 ▲6.25 | 34.90 ▲0.56 |
Add New Post /wp-admin/post-new.php | 1,551 ▲37 | 23.08 ▲5.51 | 648.82 ▼21.10 | 72.81 ▲17.72 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.32 ▲0.01 | 94.87 ▼5.83 | 41.36 ▼8.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
The following issues need your attention
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/jhakkas-elements/widgets/service2/view.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/jhakkas-elements/widgets/service3/view.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/jhakkas-elements/widgets/feature1/view.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/jhakkas-elements/widgets/team2/view.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/jhakkas-elements/widgets/portfolio1/view.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/jhakkas-elements/widgets/service1/view.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/jhakkas-elements/widgets/team1/view.php:3
- > PHP Fatal error
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 96% 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
5 plugin tags: elements, addons, elementor widget, elementor, elementor addon
jhakkas-elements/jhakkas-elements.php 92% from 13 tests
"Jhakkas Elements" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected3,370 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 232 | 140 | 2,855 |
CSS | 1 | 18 | 6 | 493 |
JavaScript | 1 | 14 | 0 | 22 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 2.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 57 | |
▷ Static methods | 1 | 1.75% |
▷ Public methods | 40 | 70.18% |
▷ Protected methods | 14 | 24.56% |
▷ Private methods | 3 | 5.26% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 8 | |
▷ Global constants | 5 | 62.50% |
▷ Class constants | 3 | 37.50% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin