Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.58ms] Passed 4 tests
A check of server-side resources used by Searchy
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.57 ▼4.19 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.30 ▼3.75 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.63 ▲6.55 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 86.80 ▲5.26 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.84 ▼3.62 |
Searchy /wp-admin/options-general.php?page=searchy-settings | 3.22 | 26.53 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Searchy
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲179 | 13.98 ▼0.58 | 9.00 ▲7.30 | 40.93 ▼2.91 |
Dashboard /wp-admin | 2,210 ▲22 | 4.82 ▼1.08 | 113.54 ▲0.89 | 43.12 ▼7.05 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.03 ▲0.02 | 40.02 ▲0.84 | 35.31 ▲1.90 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.28 ▲5.01 | 665.86 ▲0.24 | 55.82 ▼1.15 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.26 ▲0.05 | 99.87 ▼22.84 | 41.38 ▼11.00 |
Searchy /wp-admin/options-general.php?page=searchy-settings | 862 | 2.05 | 26.00 | 33.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
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 everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/searchy/searchybits/no-results.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined index: searchy_sortby_field_hidden in wp-content/plugins/searchy/searchybits/perform-search.php on line 56
- > PHP Fatal error
Uncaught Error: Call to undefined function get_categories() in wp-content/plugins/searchy/searchybits/search_filters.php:14
- > PHP Notice
Undefined index: searchy_sortby_hidden in wp-content/plugins/searchy/searchybits/perform-search.php on line 55
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/searchy/searchybits/perform-search.php:71
- > PHP Notice
Undefined index: SearchybyName in wp-content/plugins/searchy/searchybits/perform-search.php on line 62
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/searchy/searchybits/options-panel.php:5
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: search, category, custom fields, sorting, filter...
searchy/index.php 85% from 13 tests
The main PHP file in "Searchy" ver. 1,0... adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("searchy.php" instead of "index.php")
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "1,0...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin448 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 109 | 39 | 295 |
CSS | 1 | 30 | 9 | 118 |
JavaScript | 1 | 11 | 13 | 35 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
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 | 10 | |
▷ Named functions | 10 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected