Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.75ms] Passed 4 tests
This is a short check of server-side resources used by Advanced All in One Admin Search by WP Spotlight
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.10 | 35.18 ▼8.66 |
Dashboard /wp-admin | 3.40 ▲0.10 | 46.15 ▼4.22 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 51.98 ▲1.92 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 99.75 ▼6.62 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 34.50 ▲0.51 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced All in One Admin Search by WP Spotlight
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲229 | 13.55 ▼0.83 | 1.61 ▼0.37 | 28.25 ▼14.43 |
Dashboard /wp-admin | 2,339 ▲148 | 5.49 ▼0.41 | 102.91 ▲5.38 | 83.85 ▲41.77 |
Posts /wp-admin/edit.php | 2,246 ▲154 | 2.48 ▲0.46 | 41.40 ▲0.68 | 38.60 ▲3.95 |
Add New Post /wp-admin/post-new.php | 1,639 ▲97 | 23.45 ▲5.04 | 638.56 ▲27.70 | 38.91 ▼18.68 |
Media Library /wp-admin/upload.php | 1,527 ▲136 | 4.65 ▲0.50 | 113.97 ▲16.28 | 81.67 ▲37.11 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-spotlight-search/admin/view/settings.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% 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
Attributes that need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-spotlight-search/init.php 85% from 13 tests
This is the main PHP file of "Advanced All in One Admin Search by WP Spotlight" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 152 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-spotlight-search.php" instead of "init.php")
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
Good job! No executable or dangerous file extensions detected758 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 82 | 12 | 486 |
JavaScript | 3 | 29 | 27 | 201 |
SVG | 1 | 0 | 1 | 43 |
CSS | 2 | 13 | 18 | 28 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 37.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.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 | 33 | |
▷ Static methods | 16 | 48.48% |
▷ Public methods | 27 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 18.18% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/rating.png | 36.40KB | 12.84KB | ▼ 64.73% |