Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/happyfox-helpdesk/happyfox.php+1265
Function create_function() is deprecated
Server metrics [RAM: ▼1.63MB] [CPU: ▼51.35ms] Passed 4 tests
Server-side resources used by HappyFox Helpdesk
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.36 ▼1.10 | 11.80 ▼35.73 |
Dashboard /wp-admin | 2.38 ▼0.93 | 7.11 ▼44.61 |
Posts /wp-admin/edit.php | 2.38 ▼0.98 | 7.84 ▼40.59 |
Add New Post /wp-admin/post-new.php | 2.38 ▼3.51 | 8.63 ▼84.46 |
Media Library /wp-admin/upload.php | 2.38 ▼0.85 | 7.24 ▼31.87 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
happyfox_settings |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for HappyFox Helpdesk
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,955 ▲194 | 13.29 ▼1.35 | 1.90 ▲0.03 | 40.36 ▼5.18 |
Dashboard /wp-admin | 2,346 ▲166 | 5.73 ▲0.11 | 95.51 ▲3.85 | 70.50 ▲29.98 |
Posts /wp-admin/edit.php | 2,222 ▲122 | 2.13 ▲0.18 | 43.71 ▲5.77 | 35.55 ▼3.39 |
Add New Post /wp-admin/post-new.php | 1,795 ▲267 | 22.55 ▼0.41 | 646.32 ▼0.22 | 30.14 ▼21.41 |
Media Library /wp-admin/upload.php | 1,515 ▲115 | 4.25 ▲0.05 | 108.83 ▼0.51 | 84.94 ▲38.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/happyfox-helpdesk/happyfox.php+1265
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/happyfox-helpdesk/happyfox.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Some of the features available in the HappyFox settings page), #2 (Convert a comment into a HappyTicket easily), #3 ('Create a HappyFox Ticket' interface), #4 (The HappyFox tickets widget in your admin area)
happyfox-helpdesk/happyfox.php 92% from 13 tests
"HappyFox Helpdesk" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("happyfox-helpdesk.php" instead of "happyfox.php")
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 plugin1,981 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 257 | 411 | 1,058 |
CSS | 3 | 72 | 44 | 415 |
SVG | 2 | 0 | 0 | 293 |
JavaScript | 3 | 52 | 42 | 215 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 77.50 |
▷ Minimum class complexity | 45.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 49 | 72.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 27.94% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 0.23MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/new-window.png | 0.45KB | 0.37KB | ▼ 18.66% |
screenshot-3.png | 46.89KB | 17.73KB | ▼ 62.18% |
images/colorbox/loading_background.png | 0.16KB | 0.15KB | ▼ 6.02% |
images/colorbox/border.png | 0.16KB | 0.16KB | 0.00% |
images/happyfox-32.png | 1.32KB | 1.37KB | 0.00% |