Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼143.72ms] Passed 4 tests
A check of server-side resources used by Wizhi Multi Filters by Wenprise
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 34.94 ▲12.63 |
Dashboard /wp-admin | 3.07 ▲0.01 | 43.85 ▲0.29 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 41.21 ▲0.38 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 88.54 ▼575.29 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 34.13 ▼0.25 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Wizhi Multi Filters by Wenprise: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,686 ▲90 | 16.21 ▲0.17 | 7.59 ▼0.16 | 48.78 ▼6.72 |
Dashboard /wp-admin | 2,975 ▲41 | 5.89 ▼0.04 | 132.27 ▼23.26 | 122.56 ▲7.30 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.81 ▲0.12 | 65.37 ▼0.60 | 97.67 ▲3.63 |
Add New Post /wp-admin/post-new.php | 1,675 ▲177 | 18.83 ▼0.03 | 357.36 ▼36.55 | 111.78 ▲2.42 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.01 ▲0.00 | 150.13 ▲1.12 | 116.29 ▼5.83 |
多条件筛选 /wp-admin/wizhi-multi-filter.php | 26 | 0.90 | 0.05 | 11.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wizhi-multi-filters/wizhi-multi-filter.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wizhi-multi-filters/settings.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/wizhi-multi-filter.php
- > Network (severe)
wp-admin/wizhi-multi-filter.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Donate link: Please fix this invalid URI: ""
- Screenshots: Please add descriptions for these screenshots #1, #2 in wizhi-multi-filters/assets to your readme.txt
- Plugin Name: Please specify the plugin name on the first line (
=== wizhi-multi-filters ===
)
wizhi-multi-filters/wizhi-multi-filter.php 92% from 13 tests
"Wizhi Multi Filters by Wenprise" version 1.8.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wizhi-multi-filters.php" instead of "wizhi-multi-filter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin499 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 165 | 114 | 446 |
JavaScript | 1 | 8 | 1 | 39 |
CSS | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin