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
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.19ms] Passed 4 tests
This is a short check of server-side resources used by Advance Ajax Live Search
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.49 ▼8.01 |
Dashboard /wp-admin | 3.33 ▲0.02 | 47.14 ▼3.36 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.70 ▼5.02 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.27 ▼8.36 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.01 ▲0.61 |
Search Setting /wp-admin/admin.php?page=search-setting | 3.27 | 30.79 |
Contact Us /wp-admin/admin.php?page=about-us | 3.21 | 30.34 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 14 new options
New WordPress options |
---|
e_cats |
widget_recent-posts |
e_tag |
title |
e_date |
s_posts_per_page |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Advance Ajax Live Search
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲179 | 13.58 ▼0.67 | 4.91 ▲2.68 | 38.36 ▼7.40 |
Dashboard /wp-admin | 2,227 ▲42 | 5.85 ▲0.76 | 103.93 ▼15.10 | 84.36 ▲36.73 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.06 ▲0.02 | 32.69 ▼2.70 | 33.13 ▼4.71 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 17.66 ▼5.33 | 775.75 ▲192.19 | 63.41 ▲12.18 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.23 ▲0.03 | 96.02 ▼8.35 | 74.30 ▲32.10 |
Search Setting /wp-admin/admin.php?page=search-setting | 996 | 2.03 | 26.64 | 40.26 |
Contact Us /wp-admin/admin.php?page=about-us | 798 | 2.02 | 23.39 | 24.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 14 options
- e_tag
- widget_recent-comments
- s_posts_per_page
- e_keyword
- theysaidso_admin_options
- e_cats
- e_author
- db_upgraded
- e_date
- title
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/advance-search-ajax/Advance-Search-Ajax.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/advance-search-ajax/loop.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/advance-search-ajax/setting.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/advance-search-ajax/process.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/advance-search-ajax/select.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (This screen shot show a view of search form.), #2 (This screen shot show a view from the admin panel.)
advance-search-ajax/Advance-Search-Ajax.php 92% from 13 tests
The main PHP file in "Advance Ajax Live Search" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("advance-search-ajax.php" instead of "Advance-Search-Ajax.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,028 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 69 | 18 | 529 |
PHP | 5 | 210 | 95 | 340 |
JavaScript | 2 | 43 | 38 | 159 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 11 | |
▷ Static methods | 11 | 100.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/search-me.png | 0.52KB | 0.35KB | ▼ 33.71% |