Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.42MB] [CPU: ▲1.95ms] Passed 4 tests
Analyzing server-side resources used by Admin Live Search
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.46 | 43.01 ▲5.18 |
Dashboard /wp-admin | 3.75 ▲0.45 | 46.89 ▼1.15 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 53.48 ▲10.01 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.41 | 95.53 ▲4.84 |
Media Library /wp-admin/upload.php | 3.61 ▲0.39 | 36.36 ▼1.07 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Admin Live Search
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.25 ▼1.34 | 4.34 ▲2.52 | 43.20 ▼0.74 |
Dashboard /wp-admin | 2,236 ▲48 | 5.86 ▲0.84 | 97.04 ▼20.96 | 38.52 ▼6.93 |
Posts /wp-admin/edit.php | 2,141 ▲52 | 2.16 ▲0.11 | 46.33 ▲10.20 | 36.30 ▲2.58 |
Add New Post /wp-admin/post-new.php | 1,553 ▲19 | 18.34 ▼4.82 | 615.93 ▼60.45 | 53.44 ▲1.63 |
Media Library /wp-admin/upload.php | 1,424 ▲33 | 4.26 ▲0.08 | 97.49 ▼11.11 | 44.11 ▼3.31 |
Admin Live Search /wp-admin/admin-live-search.php | 26 | 0.44 | 0.12 | 13.88 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Admin_Live_Search_List_Table' not found in wp-content/plugins/admin-live-search/admin/admin-live-search-post-table.php:18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin-live-search.php
- > Network (severe)
wp-admin/admin-live-search.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: dashboard ajax search, ajax search, search, admin, live search...
admin-live-search/admin-live-search.php 92% from 13 tests
This is the main PHP file of "Admin Live Search" version 3.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 184 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,405 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 581 | 1,346 | 2,123 |
JavaScript | 1 | 3 | 0 | 163 |
PO File | 1 | 34 | 37 | 118 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 51.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 246.00 |
Average method complexity | 4.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 4 | 3.77% |
▷ Public methods | 67 | 63.21% |
▷ Protected methods | 32 | 30.19% |
▷ Private methods | 7 | 6.60% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG files were detected