Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure had errors
- > User error in wp-content/plugins/index-algolia/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.16.
Server metrics [RAM: ▼1.92MB] [CPU: ▼54.89ms] Passed 4 tests
This is a short check of server-side resources used by Index on Algolia
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.40 | 4.67 ▼38.45 |
Dashboard /wp-admin | 2.09 ▼1.22 | 5.23 ▼48.12 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 6.11 ▼42.69 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 6.16 ▼90.30 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.92 ▼31.86 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 130 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Index on Algolia
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲100 | 13.70 ▼0.69 | 1.84 ▼0.08 | 43.44 ▼0.38 |
Dashboard /wp-admin | 2,254 ▲72 | 5.89 ▼0.01 | 102.86 ▼3.01 | 66.53 ▲23.85 |
Posts /wp-admin/edit.php | 2,135 ▲49 | 2.06 ▲0.04 | 39.77 ▲3.77 | 35.08 ▼0.60 |
Add New Post /wp-admin/post-new.php | 45 ▼1,469 | 0.44 ▼17.15 | 0.06 ▼680.80 | 8.45 ▼42.99 |
Media Library /wp-admin/upload.php | 1,428 ▲37 | 4.16 ▼0.16 | 100.83 ▼3.40 | 68.77 ▲22.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > User error in wp-content/plugins/index-algolia/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.16.
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- recovery_mode_email_last_sent
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please fix the following items
- 55× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Algolia\\AlgoliaSearch\\Exceptions\\RequestException' not found in wp-content/plugins/index-algolia/vendor/algolia/algoliasearch-client-php/src/Exceptions/BadRequestException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/index-algolia/vendor/psr/http-message/src/ResponseInterface.php:20
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/index-algolia/vendor/psr/simple-cache/src/CacheInterface.php on line 34
- > PHP Fatal error
Uncaught Error: Class 'Algolia\\AlgoliaSearch\\Config\\AbstractConfig' not found in wp-content/plugins/index-algolia/vendor/algolia/algoliasearch-client-php/src/Config/AnalyticsConfig.php:5
- > PHP Fatal error
Uncaught Error: Class 'Algolia\\AlgoliaSearch\\Response\\AbstractResponse' not found in wp-content/plugins/index-algolia/vendor/algolia/algoliasearch-client-php/src/Response/MultiResponse.php:5
- > PHP Fatal error
Uncaught Error: Class 'Algolia\\AlgoliaSearch\\Response\\AbstractResponse' not found in wp-content/plugins/index-algolia/vendor/algolia/algoliasearch-client-php/src/Response/RestoreApiKeyResponse.php:9
- > PHP Fatal error
Uncaught Error: Class 'Algolia\\AlgoliaSearch\\Config\\AbstractConfig' not found in wp-content/plugins/index-algolia/vendor/algolia/algoliasearch-client-php/src/Config/SearchConfig.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/index-algolia/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/index-algolia/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
Uncaught Error: Class 'Algolia\\AlgoliaSearch\\Response\\AbstractResponse' not found in wp-content/plugins/index-algolia/vendor/algolia/algoliasearch-client-php/src/Response/NullResponse.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
There were not plugin tags detected
index-algolia/index-algolia.php Passed 13 tests
The primary PHP file in "Index on Algolia" version 1.0 is used by WordPress to initiate all plugin functionality
43 characters long description:
Allow to index Wordpress content in Algolia
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Almost there! Just fix the following issues
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/index-algolia/vendor/bin/algolia-doctor.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 108 | 1,722 | 3,853 | 6,242 |
JSON | 5 | 0 | 0 | 391 |
YAML | 1 | 18 | 14 | 124 |
Markdown | 6 | 37 | 0 | 102 |
Dockerfile | 1 | 4 | 2 | 12 |
DOS Batch | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 7.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 14 | |
Traits | 2 | |
Classes | 76 | |
▷ Abstract classes | 4 | 5.26% |
▷ Concrete classes | 72 | 94.74% |
▷ Final classes | 47 | 65.28% |
Methods | 659 | |
▷ Static methods | 93 | 14.11% |
▷ Public methods | 598 | 90.74% |
▷ Protected methods | 11 | 1.67% |
▷ Private methods | 50 | 7.59% |
Functions | 23 | |
▷ Named functions | 5 | 21.74% |
▷ Anonymous functions | 18 | 78.26% |
Constants | 16 | |
▷ Global constants | 2 | 12.50% |
▷ Class constants | 14 | 87.50% |
▷ Public constants | 14 | 100.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 were not PNG files found in your plugin