Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼1.45MB] [CPU: ▼51.97ms] Passed 4 tests
Server-side resources used by Query Filter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.56 ▼0.91 | 11.39 ▼31.63 |
Dashboard /wp-admin | 2.57 ▼0.78 | 11.71 ▼54.81 |
Posts /wp-admin/edit.php | 2.57 ▼0.79 | 13.54 ▼36.64 |
Add New Post /wp-admin/post-new.php | 2.57 ▼3.32 | 16.30 ▼84.79 |
Media Library /wp-admin/upload.php | 2.57 ▼0.66 | 11.38 ▼27.06 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_j_query_filter_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Query Filter: 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,789 ▲28 | 14.23 ▼0.37 | 1.64 ▼0.40 | 47.55 ▲3.53 |
Dashboard /wp-admin | 2,198 ▲24 | 5.62 ▼0.05 | 84.76 ▼14.99 | 37.13 ▼9.08 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.07 | 36.96 ▼1.16 | 35.90 ▼2.79 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.79 ▲0.71 | 690.81 ▲20.29 | 55.05 ▼3.63 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.18 ▲0.01 | 101.68 ▼1.31 | 43.43 ▲1.64 |
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
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/query-filter/inc/JQueryFilterWidget.php+235
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_j_query_filter_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/query-filter/j-query-filter.php:27
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/query-filter/inc/JQueryFilterWidget.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/query-filter/trunk/inc/JQueryFilterWidget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/query-filter/trunk/j-query-filter.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: advanced, custom post type, filter, meta, taxonomy...
query-filter/j-query-filter.php 92% from 13 tests
Analyzing the main PHP file in "Query Filter" version 0.0.2
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("query-filter.php" instead of "j-query-filter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,226 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 225 | 357 | 1,461 |
JavaScript | 3 | 76 | 24 | 358 |
CSS | 1 | 0 | 1 | 253 |
YAML | 2 | 0 | 0 | 154 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 122.00 |
▷ Minimum class complexity | 44.00 |
▷ Maximum class complexity | 245.00 |
Average method complexity | 5.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 150 | |
▷ Static methods | 40 | 26.67% |
▷ Public methods | 44 | 29.33% |
▷ Protected methods | 4 | 2.67% |
▷ Private methods | 102 | 68.00% |
Functions | 20 | |
▷ Named functions | 12 | 60.00% |
▷ Anonymous functions | 8 | 40.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/default/arrow.png | 0.95KB | 0.15KB | ▼ 84.02% |
css/default/slider-handle.png | 3.26KB | 0.69KB | ▼ 78.93% |
trunk/css/default/stripes.png | 1.00KB | 0.12KB | ▼ 88.20% |
trunk/css/default/slider-handle.png | 3.26KB | 0.69KB | ▼ 78.93% |
trunk/css/default/arrow.png | 0.95KB | 0.15KB | ▼ 84.02% |