Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.10ms] Passed 4 tests
An overview of server-side resources used by Filter Main Query
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.63 ▼2.33 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.63 ▼4.64 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.31 ▼0.38 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.08 ▼9.06 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.96 ▲2.55 |
Filter Main Query /wp-admin/plugins.php?page=filter_main_query | 3.21 | 33.16 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Filter Main Query
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▼7 | 14.48 ▲1.23 | 1.88 ▼0.81 | 43.31 ▼0.04 |
Dashboard /wp-admin | 2,210 ▲4 | 5.89 ▲1.05 | 106.13 ▼8.15 | 42.90 ▼3.16 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.01 | 36.96 ▲0.56 | 37.32 ▼29.88 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 18.41 ▼0.09 | 662.75 ▼4.13 | 57.28 ▲4.39 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.22 ▲0.01 | 98.00 ▼5.33 | 46.66 ▼1.48 |
Filter Main Query /wp-admin/plugins.php?page=filter_main_query | 916 | 2.06 | 31.17 | 45.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: filter, archives, home page, query, wp_query
filter-main-query/filter-main-query.php Passed 13 tests
This is the main PHP file of "Filter Main Query" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
128 characters long description:
This plugin will help you to filter the main query by category and post type. (Go to: Dashboard -> Plugins -> Filter Main Query)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected650 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 138 | 71 | 401 |
CSS | 1 | 34 | 0 | 203 |
JavaScript | 1 | 8 | 3 | 46 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin