Benchmarks
Plugin footprint Passed 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.02MB] [CPU: ▼291.50ms] Passed 4 tests
Server-side resources used by GFireM Advance Search
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 56.64 ▲4.88 |
Dashboard /wp-admin | 3.41 ▲0.00 | 32.78 ▼0.85 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 38.74 ▲1.82 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 99.07 ▼1,163.83 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 22.76 ▼3.12 |
Server storage [IO: ▲1.37MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 153 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for GFireM Advance Search
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,789 ▲35 | 15.60 ▼0.18 | 6.03 ▼0.71 | 2.48 ▼0.63 |
Dashboard /wp-admin | 2,888 ▲30 | 6.06 ▼0.14 | 120.15 ▼14.59 | 155.64 ▼3.74 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.23 ▼0.00 | 63.41 ▲0.61 | 139.75 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,661 ▼0 | 16.10 ▲0.49 | 416.93 ▼22.14 | 152.42 ▼1.70 |
Media Library /wp-admin/upload.php | 1,698 ▼3 | 5.54 ▲0.07 | 147.15 ▲4.57 | 199.33 ▲14.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/gfirem-advance-search/view/meta_box.php:11
- > PHP Fatal error
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)
No browser errors were detected
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
7 plugin tags: formidable filter order, formidable display, formidable view filter, formidable scroll view, formidable...
gfirem-advance-search/gfirem_adv_search.php 92% from 13 tests
This is the main PHP file of "GFireM Advance Search" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gfirem-advance-search.php" instead of "gfirem_adv_search.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin23,075 lines of code in 125 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 85 | 3,698 | 8,765 | 16,075 |
PO File | 5 | 1,874 | 1,897 | 4,811 |
Sass | 16 | 277 | 82 | 1,713 |
JavaScript | 5 | 38 | 77 | 208 |
Markdown | 1 | 61 | 0 | 192 |
JSON | 2 | 0 | 0 | 42 |
CSS | 11 | 2 | 9 | 34 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,051)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 33.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,051.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 2 | 3.77% |
▷ Concrete classes | 51 | 96.23% |
▷ Final classes | 0 | 0.00% |
Methods | 739 | |
▷ Static methods | 113 | 15.29% |
▷ Public methods | 556 | 75.24% |
▷ Protected methods | 12 | 1.62% |
▷ Private methods | 171 | 23.14% |
Functions | 75 | |
▷ Named functions | 73 | 97.33% |
▷ Anonymous functions | 2 | 2.67% |
Constants | 101 | |
▷ Global constants | 84 | 83.17% |
▷ Class constants | 17 | 16.83% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/freemius/assets/img/formidable_search.png | 9.16KB | 5.26KB | ▼ 42.58% |
includes/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
includes/freemius/assets/img/gfirem_adv_search.png | 9.16KB | 5.26KB | ▼ 42.58% |