Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.88ms] Passed 4 tests
A check of server-side resources used by Search Placeholder Avada
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.75 ▲3.47 |
Dashboard /wp-admin | 3.37 ▲0.02 | 46.77 ▼13.45 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 45.74 ▼3.24 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 84.36 ▼16.38 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.48 ▲1.56 |
Search Placeholder Avada /wp-admin/options-general.php?page=search-placeholder-avada | 3.26 | 30.08 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Search Placeholder Avada
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 13.24 ▼1.32 | 1.72 ▼0.01 | 43.06 ▼8.05 |
Dashboard /wp-admin | 2,217 ▲26 | 5.86 ▲1.03 | 99.18 ▼4.29 | 38.67 ▼3.12 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.00 ▼0.02 | 34.07 ▼9.40 | 33.85 ▼0.77 |
Add New Post /wp-admin/post-new.php | 1,521 ▼12 | 22.87 ▼0.13 | 648.58 ▼6.67 | 52.93 ▼11.21 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.22 ▼0.00 | 95.73 ▼13.79 | 42.57 ▼3.66 |
Search Placeholder Avada /wp-admin/options-general.php?page=search-placeholder-avada | 793 | 2.05 | 25.57 | 28.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 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 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/search-placeholder-avada/public/partials/search-placeholder-avada-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/search-placeholder-avada/admin/partials/search-placeholder-avada-admin-display.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: avada, header, javascript, search, themefusion...
search-placeholder-avada/search-placeholder-avada.php Passed 13 tests
The entry point to "Search Placeholder Avada" version 2.0.0 is a PHP file that has certain tags in its header comment area
66 characters long description:
Allows you to customise the search box placeholder text for Avada.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected253 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 134 | 526 | 236 |
JavaScript | 2 | 2 | 28 | 10 |
CSS | 2 | 2 | 8 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 1.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
PNG images were not found in this plugin