Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼8.49ms] Passed 4 tests
Server-side resources used by SearchWP Modal Search Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 42.36 ▼3.22 |
Dashboard /wp-admin | 3.37 ▲0.02 | 55.44 ▼6.31 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 54.72 ▲5.88 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 91.92 ▼30.32 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 44.73 ▲9.93 |
Modal Form /wp-admin/admin.php?page=searchwp-modal-form | 3.27 | 37.77 |
Server storage [IO: ▲2.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 59 new files
Database: no new tables, 9 new options
New WordPress options |
---|
searchwp_modal_form_version |
searchwp_lite_admin_notifications |
searchwp_modal_form_last_update |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
SearchWP Modal Search Form: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲92 | 14.37 ▲0.01 | 1.86 ▲0.34 | 43.57 ▼0.75 |
Dashboard /wp-admin | 2,262 ▲82 | 5.65 ▼0.03 | 93.74 ▼0.42 | 40.15 ▼3.91 |
Posts /wp-admin/edit.php | 2,168 ▲68 | 2.01 ▲0.02 | 40.71 ▲1.91 | 37.87 ▲0.26 |
Add New Post /wp-admin/post-new.php | 6,216 ▲4,686 | 19.13 ▼4.05 | 977.13 ▲316.09 | 51.73 ▲0.55 |
Media Library /wp-admin/upload.php | 1,464 ▲61 | 4.29 ▲0.15 | 95.73 ▼10.23 | 41.78 ▼2.43 |
Modal Form /wp-admin/admin.php?page=searchwp-modal-form | 1,231 | 2.08 | 26.29 | 64.50 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 9 options in the database
- searchwp_modal_form_last_update
- theysaidso_admin_options
- widget_recent-comments
- searchwp_lite_admin_notifications
- widget_theysaidso_widget
- searchwp_modal_form_version
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_search_form() in wp-content/plugins/searchwp-modal-search-form/templates/default.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: modal, searchwp, form, searchform, search
searchwp-modal-search-form/searchwp-modal-form.php 85% from 13 tests
The primary PHP file in "SearchWP Modal Search Form" version 0.5.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Requires PHP: Required version must match the one declared in readme.txt ("7.0" instead of "5.6")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("searchwp-modal-search-form.php" instead of "searchwp-modal-form.php")
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
There were no executable files found in this plugin10,827 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 4,737 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 15 | 657 | 1,131 | 2,194 |
CSS | 4 | 123 | 10 | 703 |
JavaScript | 12 | 103 | 135 | 463 |
Markdown | 1 | 32 | 0 | 59 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 22.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 110 | |
▷ Static methods | 42 | 38.18% |
▷ Public methods | 72 | 65.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 38 | 34.55% |
Functions | 17 | |
▷ Named functions | 11 | 64.71% |
▷ Anonymous functions | 6 | 35.29% |
Constants | 12 | |
▷ Global constants | 4 | 33.33% |
▷ Class constants | 8 | 66.67% |
▷ Public constants | 5 | 62.50% |
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
9 compressed PNG files occupy 0.53MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 12.52KB | 13.69KB | 0.00% |
assets/banner-1544x500.png | 35.67KB | 37.98KB | 0.00% |
assets/icon-128x128.png | 4.21KB | 4.84KB | 0.00% |
assets/screenshot-5.png | 87.65KB | 95.16KB | 0.00% |
assets/screenshot-2.png | 194.64KB | 215.63KB | 0.00% |