10% jajadi-training

Code Review | JaJaDi Training

WordPress plugin JaJaDi Training scored10%from 54 tests.

About plugin

  • Plugin page: jajadi-training
  • Plugin version: 0.5.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: Feb 19, 2013
  • Latest release: Apr 25, 2014
  • Number of updates: 31
  • Update frequency: every 46.5 days
  • Top authors: DoubelJ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,082 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.325.15 ▼37.84
Dashboard /wp-admin2.16 ▼1.196.05 ▼61.96
Posts /wp-admin/edit.php2.16 ▼1.206.99 ▼46.35
Add New Post /wp-admin/post-new.php2.16 ▼3.737.40 ▼98.91
Media Library /wp-admin/upload.php2.16 ▼1.077.01 ▼33.25
Add New /wp-admin/post-new.php?post_type=jajadi_training2.167.25
Training and Courses /wp-admin/options-general.php?page=jajadi-training/jajadi-training-settings.php2.168.86
Training /wp-admin/edit.php?post_type=jajadi_training2.167.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,004 ▲25813.79 ▼0.866.21 ▲4.5340.73 ▼0.65
Dashboard /wp-admin2,274 ▲745.94 ▲0.0296.66 ▼22.4187.21 ▲40.90
Posts /wp-admin/edit.php2,156 ▲562.10 ▲0.1047.65 ▲12.1939.19 ▲2.09
Add New Post /wp-admin/post-new.php1,573 ▲4217.66 ▼5.54603.16 ▼57.9935.05 ▼34.59
Media Library /wp-admin/upload.php1,450 ▲534.28 ▼0.0999.00 ▼17.8686.85 ▲41.52
Add New /wp-admin/post-new.php?post_type=jajadi_training2,2557.74169.84147.99
Training and Courses /wp-admin/options-general.php?page=jajadi-training/jajadi-training-settings.php8771.8131.8528.45
Training /wp-admin/edit.php?post_type=jajadi_training1,1642.0632.9532.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

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:
LanguageFilesBlank linesComment linesLines of code
PO File45001,1081,240
PHP9110145693
CSS11015

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 code0.30
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/uploader-icons.png1.56KB2.04KB0.00%
images/icon.png0.95KB0.75KB▼ 21.09%