Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/jajadi-training/jajadi-training-widget.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; jajadi_TrainingenWidget has a deprecated constructor
Server metrics [RAM: ▼1.86MB] [CPU: ▼61.27ms] Passed 4 tests
Analyzing server-side resources used by JaJaDi Training
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 5.15 ▼37.84 |
Dashboard /wp-admin | 2.16 ▼1.19 | 6.05 ▼61.96 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 6.99 ▼46.35 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 7.40 ▼98.91 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 7.01 ▼33.25 |
Add New /wp-admin/post-new.php?post_type=jajadi_training | 2.16 | 7.25 |
Training and Courses /wp-admin/options-general.php?page=jajadi-training/jajadi-training-settings.php | 2.16 | 8.86 |
Training /wp-admin/edit.php?post_type=jajadi_training | 2.16 | 7.26 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please try to fix the following items
- The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/jajadi-training/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_jajadi_trainingenwidget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by JaJaDi Training
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,004 ▲258 | 13.79 ▼0.86 | 6.21 ▲4.53 | 40.73 ▼0.65 |
Dashboard /wp-admin | 2,274 ▲74 | 5.94 ▲0.02 | 96.66 ▼22.41 | 87.21 ▲40.90 |
Posts /wp-admin/edit.php | 2,156 ▲56 | 2.10 ▲0.10 | 47.65 ▲12.19 | 39.19 ▲2.09 |
Add New Post /wp-admin/post-new.php | 1,573 ▲42 | 17.66 ▼5.54 | 603.16 ▼57.99 | 35.05 ▼34.59 |
Media Library /wp-admin/upload.php | 1,450 ▲53 | 4.28 ▼0.09 | 99.00 ▼17.86 | 86.85 ▲41.52 |
Add New /wp-admin/post-new.php?post_type=jajadi_training | 2,255 | 7.74 | 169.84 | 147.99 |
Training and Courses /wp-admin/options-general.php?page=jajadi-training/jajadi-training-settings.php | 877 | 1.81 | 31.85 | 28.45 |
Training /wp-admin/edit.php?post_type=jajadi_training | 1,164 | 2.06 | 32.95 | 32.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/jajadi-training/jajadi-training-widget.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; jajadi_TrainingenWidget has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_jajadi_trainingenwidget
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=jajadi_training
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/jajadi-training/jajadi-training-widget.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; jajadi_TrainingenWidget has a deprecated constructor
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=jajadi_training
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/jajadi-training/jajadi-training-widget.php+107
Function create_function() is deprecated
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=jajadi_training
- > POST request to /wp-admin/admin-ajax.php
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-ui-datepicker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=jajadi_training
- > POST request to /wp-admin/admin-ajax.php
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=jajadi_training
- > POST request to /wp-admin/admin-ajax.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in jajadi_TrainingenWidget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/post-new.php?post_type=jajadi_training
- > Notice in wp-content/plugins/jajadi-training/jajadi-custombox.php+175
Undefined index: jajadi_noncename
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=jajadi_training
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=jajadi_training
- > Notice in wp-content/plugins/jajadi-training/jajadi-custombox.php+71
Undefined offset: 0
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
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/jajadi-training/jajadi-training-about.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jajadi-training/jajadi-custombox.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jajadi-training/jajadi-training-settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/jajadi-training/jajadi-training-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/jajadi-training/jajadi-training-e-learning.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/jajadi-training/jajadi-training.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/jajadi-training/jajadi-training-calender.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/jajadi-training/jajadi-training-functions.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/jajadi-training/jajadi-training-forms.php:2
- > 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 issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: widget, event, training, post, custom post type...
jajadi-training/jajadi-training.php Passed 13 tests
The main PHP file in "JaJaDi Training" ver. 0.5.7 adds more information about the plugin and also serves as the entry point for this plugin
52 characters long description:
With this plugin you can offer training and courses.
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
There were no executable files found in this plugin1,948 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 4 | 500 | 1,108 | 1,240 |
PHP | 9 | 110 | 145 | 693 |
CSS | 1 | 1 | 0 | 15 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 28 | |
▷ Named functions | 28 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/uploader-icons.png | 1.56KB | 2.04KB | 0.00% |
images/icon.png | 0.95KB | 0.75KB | ▼ 21.09% |