Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/search-refinement/modules/widget.php+6
Function create_function() is deprecated
Server metrics [RAM: ▼1.71MB] [CPU: ▼57.82ms] Passed 4 tests
An overview of server-side resources used by Search Refinement
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.29 ▼1.17 | 6.02 ▼36.55 |
Dashboard /wp-admin | 2.31 ▼1.03 | 7.16 ▼57.80 |
Posts /wp-admin/edit.php | 2.31 ▼1.04 | 6.83 ▼44.62 |
Add New Post /wp-admin/post-new.php | 2.31 ▼3.57 | 7.72 ▼92.32 |
Media Library /wp-admin/upload.php | 2.31 ▼0.92 | 8.53 ▼30.05 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_searef_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Search Refinement: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 14.61 ▲0.23 | 1.88 ▲0.11 | 44.99 ▼0.06 |
Dashboard /wp-admin | 2,208 ▲17 | 5.84 ▼0.04 | 98.30 ▼9.14 | 38.34 ▼2.53 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.08 ▲0.02 | 34.81 ▼2.29 | 36.29 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,534 ▲20 | 23.44 ▲5.78 | 708.45 ▲15.33 | 51.51 ▼3.29 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.24 ▲0.05 | 96.50 ▼13.04 | 46.86 ▼2.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/search-refinement/modules/widget.php+6
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_searef_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please 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_url() in wp-content/plugins/search-refinement/search-refinement.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/search-refinement/modules/widget.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Donate link: Please fix this invalid URI: ""
search-refinement/search-refinement.php Passed 13 tests
"Search Refinement" version 0.9.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
81 characters long description:
カスタムフィールドの値で投稿を絞り込むためのプラグイン
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected877 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 85 | 26 | 845 |
PO File | 1 | 4 | 0 | 20 |
JavaScript | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 50.67 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 101.00 |
Average method complexity | 4.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin