Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.49MB] [CPU: ▼10.07ms] Passed 4 tests
A check of server-side resources used by Dragonfly - Advanced Live Search
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 53.51 ▲12.43 |
Dashboard /wp-admin | 3.47 ▲0.17 | 45.10 ▼0.24 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 46.48 ▲1.24 |
Add New Post /wp-admin/post-new.php | 3.35 ▼2.53 | 38.20 ▼53.69 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 48.03 ▲14.55 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 89 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Dragonfly - Advanced Live Search
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲115 | 13.33 ▼0.95 | 6.04 ▲4.37 | 42.50 ▲2.37 |
Dashboard /wp-admin | 2,221 ▲33 | 4.95 ▲0.08 | 95.54 ▼16.94 | 81.86 ▲36.13 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.00 ▼0.05 | 33.21 ▼3.85 | 33.74 ▲1.69 |
Add New Post /wp-admin/post-new.php | 1,680 ▲147 | 21.78 ▼1.54 | 740.33 ▲72.03 | 48.68 ▼0.21 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.24 ▼0.01 | 98.04 ▼0.76 | 72.43 ▲27.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Trait '_8webit\\Dragonfly\\Common\\_InstanceTrait' not found in wp-content/plugins/dragonfly/src/_8webit/Dragonfly/Frontend/Shortcode.php on line 12
- > PHP Fatal error
Trait '_8webit\\Dragonfly\\Common\\_InstanceTrait' not found in wp-content/plugins/dragonfly/src/_8webit/Dragonfly/Admin/Register_Settings.php on line 15
- > PHP Fatal error
Trait '_8webit\\Dragonfly\\Common\\_InstanceTrait' not found in wp-content/plugins/dragonfly/src/_8webit/Dragonfly/Admin/Menu.php on line 17
- > PHP Fatal error
Trait '_8webit\\Dragonfly\\Common\\_InstanceTrait' not found in wp-content/plugins/dragonfly/src/_8webit/Dragonfly/Common/Enqueue_Scripts.php on line 11
- > PHP Fatal error
Trait '_8webit\\Dragonfly\\Common\\_InstanceTrait' not found in wp-content/plugins/dragonfly/src/_8webit/Dragonfly/Frontend/Handlers/Search.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: ajax search, live search, search woocommerce product by sku, woocomerce search, woocommerce...
dragonfly/dragonfly.php 92% from 13 tests
The primary PHP file in "Dragonfly - Advanced Live Search" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("4.7.0" instead of "2.2.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin11,288 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 6,455 |
PHP | 26 | 430 | 788 | 1,832 |
CSS | 2 | 130 | 30 | 1,169 |
JavaScript | 23 | 194 | 216 | 1,145 |
Sass | 16 | 20 | 0 | 686 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 7.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 121 | |
▷ Static methods | 82 | 67.77% |
▷ Public methods | 87 | 71.90% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 34 | 28.10% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/img/blank.png | 20.63KB | 8.16KB | ▼ 60.43% |
assets/admin/img/logo.png | 10.87KB | 5.39KB | ▼ 50.42% |
assets/admin/img/menu-icon.png | 0.44KB | 0.44KB | 0.00% |