Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼296.00ms] Passed 4 tests
A check of server-side resources used by ACS ADVANCED SEARCH
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.06 | 62.34 ▲13.35 |
Dashboard /wp-admin | 3.45 ▲0.05 | 35.84 ▼21.10 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 56.22 ▲19.33 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 100.15 ▼1,169.13 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 25.19 ▼7.10 |
ACS Advanced Search /wp-admin/options-general.php?page=acs-advanced-search-options | 3.33 | 23.10 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 1 new option
New WordPress options |
---|
acs-advanced-custom-search-settings |
Browser metrics Passed 4 tests
An overview of browser requirements for ACS ADVANCED SEARCH
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,916 ▲158 | 16.40 ▲0.82 | 12.22 ▲5.91 | 2.80 ▲0.33 |
Dashboard /wp-admin | 2,881 ▲28 | 5.97 ▼0.18 | 117.36 ▼10.87 | 156.40 ▼5.04 |
Posts /wp-admin/edit.php | 2,698 ▲4 | 3.23 ▼0.00 | 66.70 ▼17.29 | 143.26 ▼33.40 |
Add New Post /wp-admin/post-new.php | 1,666 ▼0 | 16.40 ▼4.08 | 416.49 ▼31.36 | 188.29 ▲21.89 |
Media Library /wp-admin/upload.php | 1,705 ▲10 | 5.52 ▼0.01 | 138.26 ▼28.95 | 226.24 ▲35.26 |
ACS Advanced Search /wp-admin/options-general.php?page=acs-advanced-search-options | 1,309 | 2.54 | 83.07 | 149.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 1 option in the database
- acs-advanced-custom-search-settings
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=acs-advanced-search-options
- > Notice in wp-content/plugins/acs-advanced-search/admin/class-acs-advanced-search-backend.php+359
Undefined variable: date_selected
- > GET request to /wp-admin/options-general.php?page=acs-advanced-search-options
- > Notice in wp-content/plugins/acs-advanced-search/admin/class-acs-advanced-search-backend.php+360
Undefined variable: date_range_selected
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/acs-advanced-search/admin/acs-display-options-page.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png)
- Tags: You are using too many tags: 13 tag instead of maximum 10
acs-advanced-search/acs-advanced-search.php 92% from 13 tests
The main PHP file in "ACS ADVANCED SEARCH" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 196 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,355 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 150 | 425 | 919 |
CSS | 4 | 39 | 64 | 428 |
JavaScript | 1 | 2 | 8 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 37.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 90.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 9.76% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
8 PNG files occupy 0.13MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/select-image.png | 0.17KB | 0.18KB | 0.00% |
assets/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
assets/images/ui-icons_228ef1_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
screenshot-1.png | 84.23KB | 37.99KB | ▼ 54.89% |
assets/images/ui-icons_ef8c08_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |