Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.87ms] Passed 4 tests
Server-side resources used by REST API for Relevanssi
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.00 | 48.10 ▲4.85 |
Dashboard /wp-admin | 3.35 ▼0.04 | 54.57 ▼21.32 |
Posts /wp-admin/edit.php | 3.40 ▲0.00 | 48.24 ▼1.53 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.00 | 89.12 ▼5.48 |
Media Library /wp-admin/upload.php | 3.27 ▲0.00 | 38.47 ▲5.45 |
Server storage [IO: ▲0.02MB] [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: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for REST API for Relevanssi
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.38 ▲0.02 | 1.68 ▼0.13 | 43.47 ▼0.21 |
Dashboard /wp-admin | 2,195 ▲18 | 5.57 ▼0.09 | 86.50 ▼2.01 | 38.70 ▲0.71 |
Posts /wp-admin/edit.php | 2,079 ▼24 | 1.99 ▲0.01 | 35.95 ▼0.82 | 32.22 ▼4.81 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 25.04 ▲1.87 | 662.75 ▼23.14 | 72.67 ▲10.40 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.19 ▲0.01 | 97.08 ▼4.73 | 44.56 ▼2.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/rest-api-for-relevanssi/rest-api-for-relevanssi.php
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 Passed 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
4 plugin tags: api, search, relevanssi, rest api
rest-api-for-relevanssi/rest-api-for-relevanssi.php Passed 13 tests
The entry point to "REST API for Relevanssi" version 1.18 is a PHP file that has certain tags in its header comment area
45 characters long description:
Adds REST API Endpoint for Relevanssi queries
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin141 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 41 | 69 | 141 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 1.02 |
Average class complexity | 61.00 |
▷ Minimum class complexity | 61.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin