Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼9.67ms] Passed 4 tests
Analyzing server-side resources used by Sara Ajax Search
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 48.88 ▲6.98 |
Dashboard /wp-admin | 3.40 ▲0.06 | 45.02 ▼12.43 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 46.06 ▼1.60 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 81.47 ▼26.04 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 34.28 ▲1.38 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Sara Ajax Search
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲156 | 13.62 ▼0.76 | 5.73 ▲3.93 | 42.08 ▼1.87 |
Dashboard /wp-admin | 2,225 ▲37 | 4.87 ▼1.00 | 100.51 ▲0.79 | 39.30 ▼5.18 |
Posts /wp-admin/edit.php | 2,108 ▲16 | 2.06 ▲0.05 | 39.57 ▼1.76 | 34.16 ▼3.60 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.24 ▲5.54 | 676.65 ▲59.40 | 51.41 ▲1.91 |
Media Library /wp-admin/upload.php | 1,401 ▲16 | 4.22 ▲0.07 | 104.94 ▲9.37 | 45.76 ▲2.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sara-ajax-search/public/partials/saraajaxsearch-public-display.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sara-ajax-search/admin/sarasearch.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sara-ajax-search/admin/class-saraajaxsearch-admin.php:123
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sara-ajax-search/admin/partials/saraajaxsearch-admin-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/sara-ajax-search/admin/partials/saraajaxsearch-form.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: sara search, ajax, ajax search, live search
sara-ajax-search/saraajaxsearch.php 77% from 13 tests
"Sara Ajax Search" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 224 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("sara-ajax-search.php" instead of "saraajaxsearch.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected670 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 242 | 548 | 511 |
CSS | 3 | 24 | 16 | 133 |
JavaScript | 3 | 12 | 66 | 26 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 1.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG images were found in this plugin