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
Install script ran successfully
Server metrics [RAM: ▼0.23MB] [CPU: ▼13.46ms] Passed 4 tests
Server-side resources used by Search with Algolia Instantsearch Blocks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 43.33 ▲1.95 |
Dashboard /wp-admin | 3.35 ▲0.04 | 43.83 ▼6.83 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.96 ▼0.10 |
Add New Post /wp-admin/post-new.php | 4.86 ▼1.02 | 52.88 ▼48.85 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.22 ▲6.58 |
Server storage [IO: ▲1.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Search with Algolia Instantsearch Blocks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲104 | 15.62 ▲1.25 | 23.03 ▲21.00 | 43.21 ▼2.56 |
Dashboard /wp-admin | 2,203 ▲18 | 5.99 ▲1.10 | 97.68 ▼3.63 | 36.90 ▼9.35 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.02 | 37.14 ▼0.10 | 33.21 ▼2.51 |
Add New Post /wp-admin/post-new.php | 6,585 ▲5,071 | 22.58 ▲4.98 | 911.86 ▲279.51 | 38.75 ▼17.42 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▲0.01 | 95.56 ▼2.44 | 42.64 ▼2.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/search-with-algolia-instantsearch-blocks/algolia-instantsearch-blocks.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: algolia, instantsearch, block
search-with-algolia-instantsearch-blocks/algolia-instantsearch-blocks.php 92% from 13 tests
The principal PHP file in "Search with Algolia Instantsearch Blocks" v. 0.2.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("search-with-algolia-instantsearch-blocks.php" instead of "algolia-instantsearch-blocks.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin21,156 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 19,625 |
TypeScript | 24 | 86 | 101 | 1,295 |
PHP | 4 | 16 | 13 | 158 |
JavaScript | 3 | 1 | 5 | 36 |
Markdown | 1 | 11 | 0 | 32 |
Bourne Shell | 1 | 1 | 0 | 8 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin