Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼134.26ms] Passed 4 tests
A check of server-side resources used by jano wp and woocommerce advanced search
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.02 | 38.44 ▲3.80 |
Dashboard /wp-admin | 3.07 ▲0.01 | 45.73 ▲4.64 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 47.72 ▲2.37 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 94.87 ▼544.24 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 31.21 ▲1.05 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for jano wp and woocommerce advanced search
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,814 ▲242 | 16.12 ▲0.74 | 12.48 ▲1.92 | 46.00 ▼0.96 |
Dashboard /wp-admin | 2,973 ▲42 | 6.08 ▲0.15 | 142.20 ▼7.88 | 97.95 ▼7.66 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.73 ▲0.01 | 68.41 ▼2.74 | 90.38 ▲8.61 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.78 ▲0.01 | 441.54 ▲39.36 | 105.59 ▼12.05 |
Media Library /wp-admin/upload.php | 1,748 ▼59 | 5.02 ▲0.01 | 156.93 ▲5.50 | 119.21 ▲4.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/jano-wp-woocommerce-advanced-search/plugin.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/jano-wp-woocommerce-advanced-search/template/template.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
- Donate link: Invalid URI ("")
jano-wp-woocommerce-advanced-search/plugin.php 92% from 13 tests
"jano wp and woocommerce advanced search" version 1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("jano-wp-woocommerce-advanced-search.php" instead of "plugin.php")
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
No dangerous file extensions were detected538 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 13 | 21 | 181 |
PHP | 4 | 101 | 7 | 168 |
JavaScript | 1 | 100 | 0 | 146 |
PO File | 1 | 5 | 15 | 22 |
SVG | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/search-icon.png | 1.60KB | 0.90KB | ▼ 43.98% |