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.05MB] [CPU: ▼4.26ms] Passed 4 tests
Analyzing server-side resources used by WP Custom Fields Search
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 46.56 ▲5.02 |
Dashboard /wp-admin | 3.35 ▲0.04 | 54.60 ▲1.30 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 47.73 ▼6.51 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 93.82 ▼10.88 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.84 ▼0.93 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_wp_custom_fields_search |
theysaidso_admin_options |
widget_theysaidso_widget |
wp_custom_fields_search-version |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Custom Fields Search
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲75 | 13.82 ▼0.81 | 2.01 ▲0.21 | 46.28 ▲3.29 |
Dashboard /wp-admin | 2,235 ▲61 | 5.19 ▼0.48 | 105.08 ▲12.80 | 43.45 ▲3.69 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.32 ▲0.29 | 38.35 ▼0.77 | 33.65 ▼2.01 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 23.96 ▲0.75 | 654.89 ▼24.79 | 34.04 ▼26.99 |
Media Library /wp-admin/upload.php | 1,443 ▲43 | 4.73 ▲0.56 | 107.59 ▲0.81 | 42.33 ▼2.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_wp_custom_fields_search
- wp_custom_fields_search-version
Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-custom-fields-search/templates/input-text.php
- > /wp-content/plugins/wp-custom-fields-search/templates/input-radio-buttons.php
- > /wp-content/plugins/wp-custom-fields-search/templates/input-checkbox.php
- > /wp-content/plugins/wp-custom-fields-search/templates/input-select.php
- 34× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: html_name in wp-content/plugins/wp-custom-fields-search/templates/input-select.php on line 1
- > PHP Notice
Undefined variable: html_name in wp-content/plugins/wp-custom-fields-search/templates/input-checkbox.php on line 4
- > PHP Notice
Undefined variable: query in wp-content/plugins/wp-custom-fields-search/templates/input-checkbox.php on line 4
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-custom-fields-search/templates/input-radio-buttons.php on line 2
- > PHP Notice
Undefined variable: html_name in wp-content/plugins/wp-custom-fields-search/templates/input-text.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-custom-fields-search/templates/unsupported-message.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-custom-fields-search/templates/unsupported-message.php:6
- > PHP Notice
Undefined variable: id in wp-content/plugins/wp-custom-fields-search/templates/preset-display.php on line 1
- > PHP Notice
Undefined variable: html_name in wp-content/plugins/wp-custom-fields-search/templates/input-text.php on line 1
- > PHP Notice
Undefined variable: options in wp-content/plugins/wp-custom-fields-search/templates/input-radio-buttons.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== wp-custom-fields-search ===
) - Tested up to: Version not formatted correctly
wp-custom-fields-search/plugin.php 85% from 13 tests
Analyzing the main PHP file in "WP Custom Fields Search" version 1.2.35
Please make the necessary changes and fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Name the main plugin file the same as the plugin slug ("wp-custom-fields-search.php" instead of "plugin.php")
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 detected11,594 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 0 | 65 | 9,039 |
PHP | 18 | 136 | 41 | 1,433 |
JavaScript | 8 | 110 | 400 | 763 |
HTML | 9 | 17 | 6 | 195 |
PO File | 1 | 71 | 73 | 154 |
Sass | 1 | 2 | 0 | 10 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 5.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 4 | 3.20% |
▷ Public methods | 125 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 2 | |
▷ Global constants | 2 | 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
11 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ng/css/icons/open-accordion.png | 0.69KB | 0.82KB | 0.00% |
ng/css/icons/drag32.png | 0.35KB | 0.28KB | ▼ 20.78% |
ng/css/icons/cog.png | 0.69KB | 0.89KB | 0.00% |
ng/css/icons/spanner32.png | 0.56KB | 0.32KB | ▼ 44.12% |
ng/css/icons/stop32.png | 0.60KB | 0.31KB | ▼ 48.86% |