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.27MB] [CPU: ▼5.98ms] Passed 4 tests
An overview of server-side resources used by WP Extended Search
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 38.94 ▼3.00 |
Dashboard /wp-admin | 3.61 ▲0.31 | 48.87 ▲4.45 |
Posts /wp-admin/edit.php | 3.72 ▲0.37 | 50.25 ▼5.34 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.33 | 83.44 ▼20.01 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 46.26 ▲11.60 |
Search Settings /wp-admin/admin.php?page=wp-es | 3.50 | 37.29 |
Setting Names /wp-admin/edit.php?post_type=wpes_setting | 3.57 | 39.46 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_wpes_search_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Extended Search
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲148 | 13.34 ▼1.03 | 1.71 ▼0.13 | 39.08 ▼3.39 |
Dashboard /wp-admin | 2,286 ▲95 | 5.87 ▲0.98 | 104.59 ▲2.42 | 40.84 ▼1.55 |
Posts /wp-admin/edit.php | 2,179 ▲90 | 2.06 ▲0.06 | 39.25 ▼2.64 | 34.24 ▼2.45 |
Add New Post /wp-admin/post-new.php | 1,554 ▲40 | 17.47 ▼5.92 | 648.74 ▲33.42 | 48.95 ▼1.15 |
Media Library /wp-admin/upload.php | 1,474 ▲89 | 4.30 ▲0.09 | 97.93 ▲2.91 | 42.11 ▲0.53 |
Search Settings /wp-admin/admin.php?page=wp-es | 1,310 | 2.70 | 49.34 | 40.36 |
Setting Names /wp-admin/edit.php?post_type=wpes_setting | 1,140 | 1.99 | 37.19 | 31.41 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_wpes_search_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: search forms, advance search, tag search, postmeta, category search...
wp-extended-search/wp-es.php 92% from 13 tests
The main PHP script in "WP Extended Search" version 2.1.2 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-extended-search.php" instead of "wp-es.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,355 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 266 | 827 | 1,267 |
JavaScript | 3 | 12 | 21 | 58 |
CSS | 3 | 3 | 12 | 15 |
XML | 1 | 0 | 0 | 15 |
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.36 |
Average class complexity | 24.86 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 82 | |
▷ Static methods | 1 | 1.22% |
▷ Public methods | 79 | 96.34% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.66% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
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
PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/jQueryUI/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
assets/css/jQueryUI/images/ui-bg_flat_100_2a9fb6_40x100.png | 0.20KB | 0.08KB | ▼ 57.77% |
assets/css/jQueryUI/images/ui-bg_flat_100_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |
assets/css/jQueryUI/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |
assets/css/jQueryUI/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |