Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.43MB] [CPU: ▲0.08ms] Passed 4 tests
Analyzing server-side resources used by Advanced Search
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 48.11 ▲6.02 |
Dashboard /wp-admin | 3.74 ▲0.40 | 47.98 ▼7.82 |
Posts /wp-admin/edit.php | 3.85 ▲0.50 | 49.40 ▲4.79 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.44 | 99.22 ▲0.86 |
Media Library /wp-admin/upload.php | 3.66 ▲0.44 | 36.93 ▲2.48 |
Export/Import /wp-admin/admin.php?page=wpas_export_import | 3.66 | 35.22 |
Advanced Search /wp-admin/admin.php?page=advance-search | 3.73 | 37.83 |
Search Statistics /wp-admin/admin.php?page=wpas-statistics | 3.65 | 34.09 |
Help & Update /wp-admin/admin.php?page=wpas_help_update | 3.67 | 35.39 |
Server storage [IO: ▲3.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 76 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_wpas_index |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
advance-search_shortcode_number |
db_upgraded |
advance-search_default_woo_search |
widget_recent-comments |
advance-search_default_search |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Search
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,048 ▲302 | 13.94 ▼0.44 | 8.59 ▲6.98 | 36.47 ▼2.29 |
Dashboard /wp-admin | 2,284 ▲99 | 5.23 ▼0.65 | 106.42 ▼3.29 | 82.33 ▲38.46 |
Posts /wp-admin/edit.php | 2,166 ▲77 | 2.32 ▲0.33 | 38.56 ▲2.91 | 35.82 ▲4.22 |
Add New Post /wp-admin/post-new.php | 6,423 ▲4,909 | 27.83 ▲10.28 | 860.84 ▲172.04 | 39.47 ▼19.80 |
Media Library /wp-admin/upload.php | 1,463 ▲78 | 4.39 ▲0.13 | 101.18 ▲1.28 | 48.12 ▲2.61 |
Export/Import /wp-admin/admin.php?page=wpas_export_import | 1,103 | 2.45 | 55.30 | 44.85 |
Advanced Search /wp-admin/admin.php?page=advance-search | 1,214 | 2.34 | 38.72 | 50.02 |
Search Statistics /wp-admin/admin.php?page=wpas-statistics | 1,073 | 2.32 | 38.80 | 37.96 |
Help & Update /wp-admin/admin.php?page=wpas_help_update | 1,255 | 2.20 | 38.42 | 55.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 failed, leaving 1 table in the database
- wp_wpas_index
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- advance-search_default_woo_search
- theysaidso_admin_options
- advance-search_shortcode_number
- advance-search_default_search
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% 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 0% 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
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/advance-search/inc/admin/call-to-action-editable.php
- > /wp-content/plugins/advance-search/inc/frontend/views/html-advance-search-public-display.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/advance-search/inc/admin/views/wpas_popup.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/advance-search/inc/admin/views/help-update.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/advance-search/inc/admin/views/search-statistics.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/advance-search/inc/admin/views/wpas-search.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/advance-search/inc/admin/views/html-advance-search-admin-options.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/advance-search/inc/admin/views/import-export.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
advance-search/advance-search.php 92% from 13 tests
The primary PHP file in "Advanced Search" version 1.1.6 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 277 characters long)
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
No dangerous file extensions were detected10,442 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 243 | 121 | 3,828 |
PHP | 21 | 700 | 789 | 2,934 |
SVG | 7 | 0 | 3 | 2,732 |
PO File | 2 | 222 | 332 | 484 |
JavaScript | 5 | 90 | 122 | 464 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 19.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 3 | 5.26% |
▷ Public methods | 51 | 89.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 10.53% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/admin/images/import-export.png | 11.43KB | 11.30KB | ▼ 1.09% |
inc/admin/images/b-stat.png | 1.87KB | 1.00KB | ▼ 46.65% |
inc/admin/images/b-back.png | 1.84KB | 0.87KB | ▼ 53.05% |
inc/admin/images/btn-arrow-icon.png | 1.61KB | 0.67KB | ▼ 58.35% |
inc/admin/images/statistics.png | 75.30KB | 78.74KB | 0.00% |