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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.89ms] Passed 4 tests
An overview of server-side resources used by Ajax Search Popup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.48 ▼3.18 |
Dashboard /wp-admin | 3.33 ▼0.02 | 44.15 ▼16.78 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.49 ▲1.54 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.91 ▼5.63 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.38 ▼5.96 |
Setting /wp-admin/admin.php?page=search-popup-setting | 3.26 | 30.71 |
Contact Us /wp-admin/admin.php?page=about-us | 3.21 | 32.31 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 11 new options
New WordPress options |
---|
s_popup_post |
s_popup_posts_per_page |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
s_popup_page |
widget_search_popup_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Ajax Search Popup
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲146 | 13.72 ▼0.84 | 5.67 ▲3.79 | 71.88 ▲29.00 |
Dashboard /wp-admin | 2,235 ▲50 | 4.84 ▼1.03 | 107.95 ▲3.38 | 42.22 ▼2.13 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.04 ▲0.01 | 42.14 ▲3.76 | 35.91 ▼0.98 |
Add New Post /wp-admin/post-new.php | 1,552 ▲33 | 23.14 ▼0.40 | 591.63 ▼60.01 | 54.84 ▲2.90 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.18 ▼0.07 | 94.34 ▼17.95 | 41.72 ▼5.62 |
Setting /wp-admin/admin.php?page=search-popup-setting | 918 | 2.05 | 25.01 | 35.13 |
Contact Us /wp-admin/admin.php?page=about-us | 788 | 2.05 | 24.94 | 24.19 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 11 options in the database
- db_upgraded
- widget_search_popup_widget
- theysaidso_admin_options
- s_popup_title
- widget_recent-comments
- widget_theysaidso_widget
- s_popup_post
- widget_recent-posts
- s_popup_posts_per_page
- s_popup_page
- ...
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
Good news, no errors were detected
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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ajax-search-popup/ajax-search-popup.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/ajax-search-popup/setting.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ajax-search-popup/widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ajax-search-popup/form.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This screen shot show a view of search form.), #2 (This screen shot show a view of search form with options.), #3 (This screen shot show a view of search form in widget.), #4 (This screen shot show a view of search form with result.), #5 (This screen shot show a view from the admin panel.)
ajax-search-popup/ajax-search-popup.php Passed 13 tests
The main PHP script in "Ajax Search Popup" version 1.0 is automatically included on every request by WordPress
52 characters long description:
Ajax Popup Search. Search By Post And Page On KeyUp.
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
Everything looks great! No dangerous files found in this plugin585 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 65 | 26 | 310 |
PHP | 4 | 173 | 70 | 231 |
JavaScript | 2 | 29 | 0 | 44 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 11 | 73.33% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/296814-322.png | 0.58KB | 0.48KB | ▼ 17.42% |
img/115702-32.png | 0.69KB | 0.28KB | ▼ 59.29% |