Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.92ms] Passed 4 tests
Server-side resources used by Wow FullText Search
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 35.33 ▲0.06 |
Dashboard /wp-admin | 3.37 ▲0.02 | 44.60 ▼15.04 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 43.93 ▼5.15 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 82.13 ▼11.56 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.96 ▲3.08 |
Search /wp-admin/options-general.php?page=wow-search-page | 3.26 | 28.23 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Wow FullText Search
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 13.91 ▼0.47 | 1.80 ▲0.15 | 42.65 ▲0.26 |
Dashboard /wp-admin | 2,199 ▲19 | 5.63 ▼0.03 | 82.99 ▼4.68 | 37.13 ▼7.17 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.08 | 34.53 ▼3.32 | 36.08 ▲1.58 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.38 ▲0.14 | 650.42 ▼34.85 | 51.94 ▼0.83 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.20 ▼0.01 | 106.47 ▲9.37 | 45.93 ▲2.93 |
Search /wp-admin/options-general.php?page=wow-search-page | 1,037 | 1.70 | 23.08 | 23.93 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wow-search-page
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
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
Please fix the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WowFullTextSearch\\AdminUi' not found in wp-content/plugins/wow-fulltext-search/AdminPage_View_Settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function WowFullTextSearch\\esc_attr() in wp-content/plugins/wow-fulltext-search/AdminPage_View_Build.php:10
- > PHP Notice
Undefined variable: message_errors in wp-content/plugins/wow-fulltext-search/AdminPage_View.php on line 4
- > PHP Notice
Undefined variable: message_saved in wp-content/plugins/wow-fulltext-search/AdminPage_View.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wow-fulltext-search/AdminPage_View.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: better search, solr, full-text, fulltext, search...
wow-fulltext-search/wow-fulltext-search.php Passed 13 tests
The main PHP file in "Wow FullText Search" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
46 characters long description:
Fast fulltext search replacing default search.
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 plugin1,777 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 550 | 45 | 1,593 |
JavaScript | 1 | 66 | 6 | 184 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 14.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 60 | 62.50% |
▷ Public methods | 80 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 16.67% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin