Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.18ms] Passed 4 tests
Analyzing server-side resources used by Ajax AutoSearch
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 36.64 ▼4.22 |
Dashboard /wp-admin | 3.41 ▲0.10 | 46.10 ▼1.92 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 50.59 ▲1.99 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 85.50 ▼10.70 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.57 ▲0.13 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Ajax AutoSearch
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲176 | 13.76 ▼0.52 | 8.65 ▲7.03 | 37.91 ▼7.02 |
Dashboard /wp-admin | 2,235 ▲55 | 5.55 ▼0.06 | 95.14 ▼3.75 | 82.07 ▲34.80 |
Posts /wp-admin/edit.php | 2,143 ▲46 | 1.99 ▲0.03 | 39.36 ▲1.09 | 34.01 ▼1.70 |
Add New Post /wp-admin/post-new.php | 1,714 ▲188 | 21.88 ▼1.74 | 716.84 ▲19.14 | 52.54 ▼19.40 |
Media Library /wp-admin/upload.php | 1,437 ▲37 | 4.15 ▼0.02 | 98.85 ▼10.02 | 85.09 ▲37.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/ajax-autosearch/public/partials/ajax-autosearch-public-display.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/ajax-autosearch/admin/partials/footer.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ajax-autosearch/admin/partials/ajax-autosearch-admin-display.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ajax-autosearch/admin/partials/sidebar.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ajax-autosearch/admin/partials/dashboard-display.php:19
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: auto-search, ajax, search
ajax-autosearch/ajax-autosearch.php 92% from 13 tests
"Ajax AutoSearch" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 177 characters long)
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
Success! There were no dangerous files found in this plugin2,273 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 218 | 32 | 1,112 |
PHP | 15 | 170 | 619 | 768 |
JavaScript | 3 | 56 | 10 | 392 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 5.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 7 | |
▷ Named functions | 7 | 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
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/free-plugin-246x116.png | 8.01KB | 3.81KB | ▼ 52.42% |
admin/images/premium-plugin-246x116.png | 9.01KB | 4.16KB | ▼ 53.83% |
admin/images/arrow-prev.png | 2.07KB | 1.09KB | ▼ 47.60% |
admin/images/arrow-up.png | 1.35KB | 0.40KB | ▼ 70.17% |
admin/images/arrow-down.png | 1.36KB | 0.40KB | ▼ 70.40% |