Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/pj-jquery-ui-helper/main.php+86
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.14MB] [CPU: ▼5.54ms] Passed 4 tests
Analyzing server-side resources used by PJ jQuery UI Helper
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 43.70 ▼0.32 |
Dashboard /wp-admin | 3.52 ▲0.17 | 48.09 ▼19.29 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 54.17 ▲5.67 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 87.93 ▼5.34 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 40.34 ▲2.79 |
General Settings /wp-admin/admin.php?page=PJ-jQuery-UI-Helper | 3.34 | 33.64 |
Shortcode Settings /wp-admin/admin.php?page=PJ-jQuery-UI-Helper_pjjuh_shortcode_settings | 3.34 | 34.88 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 155 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
pjjuh_settings |
pjjuh_shortcode_settings |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
pjjuh_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
PJ jQuery UI Helper: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲197 | 13.70 ▼0.92 | 13.82 ▲11.94 | 41.43 ▼1.41 |
Dashboard /wp-admin | 2,222 ▲45 | 5.59 ▲0.01 | 88.87 ▼7.06 | 38.78 ▼5.62 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 2.02 ▼0.02 | 34.04 ▼8.09 | 36.24 ▲0.87 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 22.98 ▼0.14 | 681.83 ▲47.53 | 55.53 ▲2.50 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.19 ▼0.09 | 96.67 ▼10.20 | 47.61 ▲3.34 |
General Settings /wp-admin/admin.php?page=PJ-jQuery-UI-Helper | 836 | 2.03 | 25.95 | 30.80 |
Shortcode Settings /wp-admin/admin.php?page=PJ-jQuery-UI-Helper_pjjuh_shortcode_settings | 844 | 2.00 | 26.10 | 28.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 9 options
- can_compress_scripts
- widget_theysaidso_widget
- pjjuh_settings
- widget_recent-comments
- db_upgraded
- pjjuh_version
- theysaidso_admin_options
- pjjuh_shortcode_settings
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 12× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/pj-jquery-ui-helper/main.php
- > /wp-content/plugins/pj-jquery-ui-helper/includes/admin-templates.php
- > /wp-content/plugins/pj-jquery-ui-helper/includes/controllers/admin-controller.php
- > /wp-content/plugins/pj-jquery-ui-helper/includes/models/shortcodes-tabs-model.php
- > /wp-content/plugins/pj-jquery-ui-helper/includes/views/shortcodes/shortcodes-tabs-main-view.php
- > /wp-content/plugins/pj-jquery-ui-helper/includes/models/admin-model.php
- > /wp-content/plugins/pj-jquery-ui-helper/includes/controllers/shortcodes-controller.php
- > /wp-content/plugins/pj-jquery-ui-helper/includes/views/shortcodes/shortcodes-dialog-main-view.php
- > /wp-content/plugins/pj-jquery-ui-helper/includes/views/shortcodes/shortcodes-accordion-main-view.php
- > /wp-content/plugins/pj-jquery-ui-helper/includes/models/shortcodes-dialog-model.php
- 24× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: tabs in wp-content/plugins/pj-jquery-ui-helper/includes/views/shortcodes/tabs-html.php on line 19
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/pj-jquery-ui-helper/includes/views/shortcodes/tabs-html.php on line 30
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/pj-jquery-ui-helper/includes/views/admin/admin-menu-footer.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/pj-jquery-ui-helper/includes/views/shortcodes/dialog-html.php on line 21
- > PHP Notice
Undefined variable: tabs in wp-content/plugins/pj-jquery-ui-helper/includes/views/shortcodes/tabs-html.php on line 30
- > PHP Notice
Undefined variable: accordion_id in wp-content/plugins/pj-jquery-ui-helper/includes/views/shortcodes/accordion-html.php on line 15
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/pj-jquery-ui-helper/includes/views/shortcodes/dialog-script.php on line 5
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/pj-jquery-ui-helper/includes/views/shortcodes/tabs-html.php on line 19
- > PHP Notice
Undefined variable: tab_groups in wp-content/plugins/pj-jquery-ui-helper/includes/views/shortcodes/tabs-script.php on line 4
- > PHP Notice
Undefined variable: group_id in wp-content/plugins/pj-jquery-ui-helper/includes/views/shortcodes/tabs-html.php on line 17
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: jquery ui, dialog, tabs
pj-jquery-ui-helper/main.php 92% from 13 tests
This is the main PHP file of "PJ jQuery UI Helper" version 1.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pj-jquery-ui-helper.php" instead of "main.php")
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
Success! There were no dangerous files found in this plugin5,601 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 136 | 220 | 4,572 |
PHP | 23 | 172 | 342 | 1,029 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 5.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 60 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 11.76% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
114 PNG files occupy 0.31MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/themes/blue/minified/images/ui-icons_d8e7f3_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/themes/trontastic/images/ui-bg_flat_0_303030_40x100.png | 0.22KB | 0.08KB | ▼ 62.17% |
css/themes/blue/images/ui-icons_f7a50d_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/themes/flick/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |
css/themes/blue/minified/images/ui-icons_f7a50d_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |