Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼292.62ms] Passed 4 tests
Analyzing server-side resources used by Advance Ajax Live Search
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.07 | 54.87 ▲7.31 |
Dashboard /wp-admin | 3.46 ▲0.05 | 32.70 ▼0.46 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 36.95 ▲2.43 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.05 | 93.45 ▼1,172.59 |
Media Library /wp-admin/upload.php | 3.34 ▲0.04 | 24.03 ▲0.13 |
Search Setting /wp-admin/admin.php?page=search-setting | 3.32 | 22.83 |
Contact Us /wp-admin/admin.php?page=about-us | 3.30 | 22.96 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options |
---|
e_tag |
e_cats |
e_author |
e_date |
s_posts_per_page |
title |
e_keyword |
loadin_img |
Browser metrics Passed 4 tests
An overview of browser requirements for Advance Ajax Live Search
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,934 ▲180 | 16.39 ▲0.61 | 10.10 ▲3.96 | 2.33 ▼0.11 |
Dashboard /wp-admin | 2,924 ▲63 | 6.33 ▼0.06 | 121.07 ▼14.02 | 180.59 ▲17.40 |
Posts /wp-admin/edit.php | 2,689 ▼2 | 3.34 ▼0.10 | 65.78 ▲3.25 | 142.09 ▼4.28 |
Add New Post /wp-admin/post-new.php | 1,681 ▲20 | 17.08 ▲0.70 | 389.04 ▼46.87 | 212.14 ▲50.78 |
Media Library /wp-admin/upload.php | 1,725 ▲27 | 5.72 ▼0.01 | 125.20 ▼16.68 | 210.50 ▲22.66 |
Search Setting /wp-admin/admin.php?page=search-setting | 1,281 | 2.57 | 53.27 | 103.11 |
Contact Us /wp-admin/admin.php?page=about-us | 1,009 | 2.56 | 52.92 | 90.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- title
- s_posts_per_page
- e_author
- loadin_img
- e_date
- e_tag
- e_keyword
- e_cats
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/advance-search-ajax/Advance-Search-Ajax.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/advance-search-ajax/select.php:19
- > 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 esc_attr__() in wp-content/plugins/advance-search-ajax/setting.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/advance-search-ajax/loop.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that 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 primary PHP file in "Advance Ajax Live Search" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to 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 check of programming languages and file extensions; no executable files are allowed
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 plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
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% |