Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/azure-cognitive-service-personalizer/widget_rank.php+292
Function create_function() is deprecated
Server metrics [RAM: ▼1.82MB] [CPU: ▼54.31ms] Passed 4 tests
Server-side resources used by Azure Cognitive Service Personalizer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 5.41 ▼35.60 |
Dashboard /wp-admin | 2.19 ▼1.15 | 8.00 ▼50.02 |
Posts /wp-admin/edit.php | 2.19 ▼1.16 | 6.29 ▼42.56 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.69 | 6.55 ▼89.07 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 6.08 ▼30.24 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 80 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_msftcps_rank_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Azure Cognitive Service Personalizer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲139 | 13.93 ▼0.48 | 7.81 ▲5.92 | 39.86 ▲0.44 |
Dashboard /wp-admin | 2,211 ▲20 | 5.86 ▲1.01 | 96.97 ▼3.26 | 40.30 ▼1.92 |
Posts /wp-admin/edit.php | 2,088 ▼1 | 2.02 ▼0.02 | 32.88 ▼4.13 | 33.60 ▼1.75 |
Add New Post /wp-admin/post-new.php | 1,535 ▲21 | 23.31 ▲5.76 | 647.54 ▼7.94 | 53.62 ▲3.15 |
Media Library /wp-admin/upload.php | 1,390 ▲5 | 4.22 ▲0.01 | 94.88 ▼28.63 | 40.18 ▼7.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/azure-cognitive-service-personalizer/widget_rank.php+292
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_msftcps_rank_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/azure-cognitive-service-personalizer/features/user_agent.php
- > /wp-content/plugins/azure-cognitive-service-personalizer/widget_rank.php
- > /wp-content/plugins/azure-cognitive-service-personalizer/features/post.php
- > /wp-content/plugins/azure-cognitive-service-personalizer/personalizer.php
- > /wp-content/plugins/azure-cognitive-service-personalizer/features/geo.php
- > /wp-content/plugins/azure-cognitive-service-personalizer/cognitive_service_personalizer.php
- 29× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Test\\AbstractParserTest' not found in wp-content/plugins/azure-cognitive-service-personalizer/vendor/ua-parser/uap-php/tests/ParserTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\AbstractParser' not found in wp-content/plugins/azure-cognitive-service-personalizer/vendor/ua-parser/uap-php/src/Parser.php:14
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Test\\Util\\Logfile\\AbstractReaderTest' not found in wp-content/plugins/azure-cognitive-service-personalizer/vendor/ua-parser/uap-php/tests/Util/Logfile/ApacheCommonLogFormatReaderTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Result\\AbstractClient' not found in wp-content/plugins/azure-cognitive-service-personalizer/vendor/ua-parser/uap-php/src/Result/Client.php:12
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Result\\AbstractVersionedSoftware' not found in wp-content/plugins/azure-cognitive-service-personalizer/vendor/ua-parser/uap-php/src/Result/OperatingSystem.php:12
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Util\\Logfile\\AbstractReader' not found in wp-content/plugins/azure-cognitive-service-personalizer/vendor/ua-parser/uap-php/src/Util/Logfile/ApacheCommonLogFormatReader.php:11
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Test\\AbstractTestCase' not found in wp-content/plugins/azure-cognitive-service-personalizer/vendor/ua-parser/uap-php/tests/Result/UserAgentTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Result\\AbstractVersionedSoftware' not found in wp-content/plugins/azure-cognitive-service-personalizer/vendor/ua-parser/uap-php/src/Result/UserAgent.php:12
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/azure-cognitive-service-personalizer/vendor/ua-parser/uap-php/src/Command/UpdateCommand.php:18
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Result\\AbstractSoftware' not found in wp-content/plugins/azure-cognitive-service-personalizer/vendor/ua-parser/uap-php/src/Result/AbstractVersionedSoftware.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: rl, personalization, ai, azure, microsoft...
azure-cognitive-service-personalizer/personalizer.php 92% from 13 tests
The main PHP file in "Azure Cognitive Service Personalizer" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("azure-cognitive-service-personalizer.php" instead of "personalizer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected9,554 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 54 | 524 | 743 | 8,869 |
Markdown | 4 | 108 | 0 | 336 |
JSON | 4 | 0 | 0 | 222 |
YAML | 2 | 13 | 0 | 62 |
XML | 2 | 7 | 0 | 48 |
Bourne Shell | 1 | 2 | 0 | 17 |
JavaScript | 1 | 2 | 9 | 0 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 4.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 8 | 19.05% |
▷ Concrete classes | 34 | 80.95% |
▷ Final classes | 0 | 0.00% |
Methods | 156 | |
▷ Static methods | 34 | 21.79% |
▷ Public methods | 118 | 75.64% |
▷ Protected methods | 22 | 14.10% |
▷ Private methods | 16 | 10.26% |
Functions | 16 | |
▷ Named functions | 10 | 62.50% |
▷ Anonymous functions | 6 | 37.50% |
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