Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/issuepress/includes/class-issuepress.php+204
Use of undefined constant YOUR_PLUGIN_DIR - assumed 'YOUR_PLUGIN_DIR' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.66MB] [CPU: ▼185.81ms] Passed 4 tests
This is a short check of server-side resources used by IssuePress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.97 ▼0.74 | 7.81 ▼15.88 |
Dashboard /wp-admin | 1.99 ▼1.06 | 14.06 ▼23.75 |
Posts /wp-admin/edit.php | 1.99 ▼1.12 | 8.47 ▼41.19 |
Add New Post /wp-admin/post-new.php | 1.99 ▼3.44 | 7.21 ▼651.59 |
Media Library /wp-admin/upload.php | 1.99 ▼1.01 | 10.30 ▼26.72 |
Sections /wp-admin/edit-tags.php?taxonomy=ip_support_section&post_type=ip_support_request | 2.00 | 7.34 |
All Support Requests /wp-admin/edit.php?post_type=ip_support_request | 2.00 | 7.75 |
Labels /wp-admin/edit-tags.php?taxonomy=ip_support_label&post_type=ip_support_request | 2.00 | 7.24 |
Add New /wp-admin/post-new.php?post_type=ip_support_request | 1.99 | 8.69 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 68 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_ip_widget_search_form |
widget_ip_widget_new_request_form |
Browser metrics Passed 4 tests
IssuePress: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,897 ▲284 | 16.17 ▲0.68 | 13.66 ▲3.95 | 47.98 ▼8.87 |
Dashboard /wp-admin | 3,028 ▲94 | 6.05 ▼0.02 | 141.96 ▼10.35 | 124.92 ▲4.65 |
Posts /wp-admin/edit.php | 2,790 ▲51 | 2.61 ▼0.09 | 62.09 ▼4.94 | 84.83 ▼14.74 |
Add New Post /wp-admin/post-new.php | 1,546 ▼137 | 18.52 ▲0.06 | 388.90 ▼2.69 | 115.13 ▼2.52 |
Media Library /wp-admin/upload.php | 1,816 ▲9 | 5.00 ▼0.05 | 132.38 ▼27.55 | 151.77 ▲17.00 |
Sections /wp-admin/edit-tags.php?taxonomy=ip_support_section&post_type=ip_support_request | 1,822 | 2.49 | 58.74 | 83.59 |
All Support Requests /wp-admin/edit.php?post_type=ip_support_request | 1,562 | 2.74 | 64.55 | 79.01 |
Labels /wp-admin/edit-tags.php?taxonomy=ip_support_label&post_type=ip_support_request | 1,797 | 2.51 | 59.82 | 83.23 |
Add New /wp-admin/post-new.php?post_type=ip_support_request | 3,419 | 9.13 | 232.42 | 167.38 |
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
Please fix the following items
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/issuepress/includes/class-issuepress.php+204
Use of undefined constant YOUR_PLUGIN_DIR - assumed 'YOUR_PLUGIN_DIR' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 2 options in the database
- widget_ip_widget_new_request_form
- widget_ip_widget_search_form
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ip_support_request
- > Warning in wp-content/plugins/issuepress/includes/class-issuepress.php+204
Use of undefined constant YOUR_PLUGIN_DIR - assumed 'YOUR_PLUGIN_DIR' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/post-new.php?post_type=ip_support_request
- > Warning in wp-content/plugins/issuepress/admin/views/support-meta-box.php+44
Invalid argument supplied for foreach()
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 fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/issuepress/public/partials/issuepress-public-display.php
- 19× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/issuepress/admin/views/general-section.php:17
- > PHP Warning
Use of undefined constant ISSUEPRESS_PLUGIN_DIR - assumed 'ISSUEPRESS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/issuepress/includes/class-issuepress-template-loader.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_ip_the_sections() in wp-content/plugins/issuepress/templates/support-meta.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/issuepress/admin/views/admin-tabs.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/issuepress/public/widgets/load.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_support_request_status() in wp-content/plugins/issuepress/admin/views/support-meta-box.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/issuepress/public/widgets/new-request-form.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_ip_sections() in wp-content/plugins/issuepress/templates/support-sections.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/issuepress/includes/class-issuepress-widget.php:5
- > PHP Warning
require_once(ISSUEPRESS_PLUGIN_DIRincludes/class-gamajo-template-loader.php): failed to open stream: No such file or directory in wp-content/plugins/issuepress/includes/class-issuepress-template-loader.php on line 12
- > 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 errors were detected
Optimizations
Plugin configuration Passed 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
3 plugin tags: support, issuepress, support requests
issuepress/issuepress.php Passed 13 tests
The entry point to "IssuePress" version 1.0.0 is a PHP file that has certain tags in its header comment area
40 characters long description:
Professional Support right in WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin7,576 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 3 | 59 | 0 | 3,134 |
JavaScript | 8 | 245 | 76 | 2,218 |
PHP | 32 | 727 | 1,458 | 1,310 |
CSS | 6 | 72 | 27 | 740 |
Sass | 2 | 28 | 0 | 87 |
SVG | 2 | 0 | 2 | 56 |
JSON | 1 | 0 | 0 | 31 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 1.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 5 | 5.10% |
▷ Public methods | 90 | 91.84% |
▷ Protected methods | 3 | 3.06% |
▷ Private methods | 5 | 5.10% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/chosen/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |
vendor/chosen/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |
vendor/chosen/docsupport/oss-credit.png | 6.55KB | 3.26KB | ▼ 50.17% |
admin/img/issuepress-wordpress-icon-32x32.png | 16.36KB | 1.33KB | ▼ 91.89% |
vendor/chosen/docsupport/chosen.png | 3.39KB | 2.08KB | ▼ 38.62% |