Benchmarks
Plugin footprint 58% 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
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Parse error in wp-content/plugins/next-active-directory-integration/vendor-repackaged/psr/log/src/LoggerInterface.php+30
syntax error, unexpected '|', expecting variable (T_VARIABLE)
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.53ms] Passed 4 tests
Analyzing server-side resources used by Next Active Directory Integration
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.46 ▼5.80 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.98 ▼5.87 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.19 ▲0.16 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.61 ▼0.55 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.41 ▼1.91 |
Server storage [IO: ▲3.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 576 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Next Active Directory Integration: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.34 ▼0.39 | 1.77 ▼0.25 | 37.68 ▼4.78 |
Dashboard /wp-admin | 2,195 ▲14 | 5.63 ▼0.07 | 90.13 ▼12.03 | 38.76 ▼1.68 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.99 ▲0.05 | 40.51 ▲3.54 | 35.06 ▲2.51 |
Add New Post /wp-admin/post-new.php | 1,527 ▲1 | 21.30 ▼2.09 | 622.09 ▼101.52 | 60.70 ▲7.22 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▲0.02 | 97.86 ▼6.01 | 45.58 ▲0.64 |
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_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/next-active-directory-integration/autoload.php
- > /wp-content/plugins/next-active-directory-integration/constants.php
- > /wp-content/plugins/next-active-directory-integration/uninstall.php
- > /wp-content/plugins/next-active-directory-integration/index.php
- 286× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Dreitier\adi\\Vendor\\Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/next-active-directory-integration/vendor-repackaged/twig/twig/src/TokenParser/UseTokenParser.php:36
- > PHP Fatal error
Uncaught Error: Class 'Dreitier\adi\\Vendor\\Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/next-active-directory-integration/vendor-repackaged/twig/twig/src/Extension/StringLoaderExtension.php:18
- > PHP Fatal error
Uncaught Error: Class 'Dreitier\adi\\Vendor\\Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/next-active-directory-integration/vendor-repackaged/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php:31
- > PHP Fatal error
Uncaught Error: Class 'Dreitier\adi\\Vendor\\Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/next-active-directory-integration/vendor-repackaged/twig/twig/src/TokenParser/BlockTokenParser.php:35
- > PHP Fatal error
Uncaught Error: Class 'Dreitier\adi\\Vendor\\Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/next-active-directory-integration/vendor-repackaged/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php:32
- > PHP Fatal error
Uncaught Error: Class 'Dreitier\adi\\Vendor\\Twig\ode\ode' not found in wp-content/plugins/next-active-directory-integration/vendor-repackaged/twig/twig/src/Node/BodyNode.php:22
- > PHP Fatal error
Uncaught Error: Class 'Dreitier\adi\\Vendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/next-active-directory-integration/src/shared/Util/Logger/Handlers/FrontendLogHandler.php:13
- > PHP Fatal error
Uncaught Error: Class 'Dreitier\\WordPress\\Multisite\\View\\Page\\PageAdapter' not found in wp-content/plugins/next-active-directory-integration/src/plug-in/Ui/NadiSingleSiteConfigurationPage.php:52
- > PHP Fatal error
Uncaught Error: Class 'Dreitier\adi\\Vendor\\Twig\\Sandbox\\SecurityError' not found in wp-content/plugins/next-active-directory-integration/vendor-repackaged/twig/twig/src/Sandbox/SecurityNotAllowedFilterError.php:22
- > PHP Fatal error
Uncaught Error: Class 'Dreitier\adi\\Vendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/next-active-directory-integration/vendor-repackaged/monolog/monolog/src/Monolog/Handler/SocketHandler.php:31
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
next-active-directory-integration/index.php 85% from 13 tests
This is the main PHP file of "Next Active Directory Integration" version 3.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("next-active-directory-integration.php" instead of "index.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 194 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin45,793 lines of code in 562 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 462 | 8,828 | 20,671 | 38,399 |
JavaScript | 54 | 741 | 801 | 3,045 |
PO File | 1 | 467 | 552 | 1,869 |
Twig | 33 | 270 | 29 | 1,261 |
Markdown | 3 | 129 | 0 | 570 |
CSS | 6 | 58 | 26 | 531 |
JSON | 3 | 0 | 0 | 118 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 450.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 83 | |
Interfaces | 25 | |
Traits | 5 | |
Classes | 419 | |
▷ Abstract classes | 25 | 5.97% |
▷ Concrete classes | 394 | 94.03% |
▷ Final classes | 67 | 17.01% |
Methods | 2,693 | |
▷ Static methods | 255 | 9.47% |
▷ Public methods | 2,140 | 79.47% |
▷ Protected methods | 353 | 13.11% |
▷ Private methods | 200 | 7.43% |
Functions | 167 | |
▷ Named functions | 120 | 71.86% |
▷ Anonymous functions | 47 | 28.14% |
Constants | 381 | |
▷ Global constants | 25 | 6.56% |
▷ Class constants | 356 | 93.44% |
▷ Public constants | 329 | 92.42% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected