Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼290.87ms] Passed 4 tests
A check of server-side resources used by FLATsite Serverless Search
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 59.14 ▲4.33 |
Dashboard /wp-admin | 3.45 ▲0.05 | 37.71 ▲0.77 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 38.60 ▼4.96 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 96.68 ▼1,159.33 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 32.09 ▲0.04 |
Serverless Search /wp-admin/options-general.php?page=flatsite-sls-settings | 3.30 | 29.81 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Just a few items left to fix
- The plugin illegally modified 1 file (1.20KB) outside of "wp-content/plugins/flatsite-serverless-search/" and "wp-content/uploads/"
- (new file) wp-content/search-index.json
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_sls_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for FLATsite Serverless Search
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,841 ▲119 | 15.76 ▲0.14 | 7.06 ▲1.49 | 2.44 ▼0.19 |
Dashboard /wp-admin | 2,879 ▲28 | 6.16 ▼0.09 | 117.06 ▼20.94 | 155.91 ▼5.73 |
Posts /wp-admin/edit.php | 2,690 ▼1 | 3.23 ▼0.01 | 63.77 ▲1.01 | 148.39 ▲4.89 |
Add New Post /wp-admin/post-new.php | 1,755 ▲87 | 20.89 ▲2.66 | 427.00 ▲20.60 | 150.98 ▼6.43 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.59 ▲0.10 | 154.73 ▲8.31 | 296.92 ▲107.77 |
Serverless Search /wp-admin/options-general.php?page=flatsite-sls-settings | 1,000 | 2.41 | 62.79 | 141.03 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- widget_sls_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/flatsite-serverless-search/resources/views/modal.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/flatsite-serverless-search/src/FLATsiteSearchWidget.php:3
- > PHP Notice
Undefined variable: indexUrl in wp-content/plugins/flatsite-serverless-search/resources/views/modal.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/flatsite-serverless-search/src/FLATsiteSearchWidget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: serverless, flatsite, search
flatsite-serverless-search/flatsite-serverless-search.php 92% from 13 tests
The primary PHP file in "FLATsite Serverless Search" version 1.1.5 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected318 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 54 | 77 | 316 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 9.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 96.00% |
▷ Protected methods | 1 | 4.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected