Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.16ms] Passed 4 tests
Analyzing server-side resources used by Simple Ajax Search
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 44.01 ▲5.67 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.90 ▼0.39 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.73 ▲0.72 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 82.45 ▼10.65 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 40.11 ▲6.34 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Simple Ajax Search: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.31 ▼0.06 | 1.72 ▲0.24 | 48.95 ▲3.92 |
Dashboard /wp-admin | 2,192 ▲18 | 5.60 ▼0.01 | 94.46 ▲3.07 | 41.14 ▲2.56 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.03 ▲0.09 | 36.67 ▲1.25 | 32.36 ▲1.33 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.32 ▲5.32 | 629.84 ▲18.60 | 49.47 ▼22.23 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.20 ▲0.01 | 100.94 ▼5.50 | 42.66 ▼2.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Unterminated comment starting line 1 in wp-content/plugins/simple-ajax-search/core/index.php on line 1
- > PHP Warning
Unterminated comment starting line 1 in wp-content/plugins/simple-ajax-search/public/index.php on line 1
- > PHP Warning
Unterminated comment starting line 1 in wp-content/plugins/simple-ajax-search/index.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/simple-ajax-search/public/views/simple-ajax-search-public-display.php:18
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: ajax, blog, search, search engine, seeker
simple-ajax-search/simple-ajax-search.php Passed 13 tests
The primary PHP file in "Simple Ajax Search" version 1.0.1 is used by WordPress to initiate all plugin functionality
57 characters long description:
Easily create a dynamic ajax search engine for your blog.
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
Everything looks great! No dangerous files found in this plugin418 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 136 | 551 | 277 |
JavaScript | 2 | 28 | 0 | 88 |
CSS | 2 | 0 | 5 | 53 |
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.21 |
Average class complexity | 4.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 3 | 10.34% |
▷ Public methods | 21 | 72.41% |
▷ Protected methods | 1 | 3.45% |
▷ Private methods | 7 | 24.14% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin