Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.32ms] Passed 4 tests
A check of server-side resources used by Flarum SSO WP Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 43.29 ▼6.82 |
Dashboard /wp-admin | 3.44 ▲0.14 | 50.82 ▼5.69 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 50.35 ▼2.53 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 99.91 ▲1.75 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 41.31 ▲2.22 |
Flarum SSO Plugin /wp-admin/options-general.php?page=sso-flarum-settings | 3.34 | 37.45 |
Server storage [IO: ▲5.64MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 1,765 new files
Database: no new tables, 9 new options
New WordPress options |
---|
flarum_sso_plugin_verify_ssl |
flarum_sso_plugin_root_domain |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
flarum_sso_plugin_version |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Flarum SSO WP Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲117 | 13.35 ▼1.00 | 8.59 ▲6.80 | 41.43 ▼3.36 |
Dashboard /wp-admin | 2,199 ▲22 | 5.50 ▼0.02 | 90.35 ▼1.27 | 41.62 ▼2.64 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.00 ▲0.04 | 38.71 ▼0.91 | 37.55 ▲2.04 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 18.43 ▼4.71 | 623.58 ▼47.88 | 75.84 ▲21.68 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.23 ▲0.02 | 97.47 ▼14.36 | 42.23 ▼2.41 |
Flarum SSO Plugin /wp-admin/options-general.php?page=sso-flarum-settings | 951 | 2.00 | 23.69 | 42.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- flarum_sso_plugin_root_domain
- flarum_sso_plugin_verify_ssl
- widget_recent-posts
- flarum_sso_plugin_version
- widget_theysaidso_widget
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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sso-flarum/vendor/symfony/translation/Resources/bin/translation-status.php
- > /wp-content/plugins/sso-flarum/vendor/delight-im/http/tests/index.php
- > /wp-content/plugins/sso-flarum/vendor/mistic100/php-hooks/examples/bbcode_parser/index.php
- > /wp-content/plugins/sso-flarum/vendor/delight-im/cookie/tests/index.php
- > /wp-content/plugins/sso-flarum/vendor/mistic100/php-hooks/examples/youtube_tag/index.php
- 298× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Formatter\\IntlFormatterInterface' not found in wp-content/plugins/sso-flarum/vendor/symfony/translation/Formatter/IntlFormatter.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/sso-flarum/vendor/nesbot/carbon/src/Carbon/Exceptions/NotACarbonClassException.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\otifications\\Dispatcher' not found in wp-content/plugins/sso-flarum/vendor/illuminate/support/Testing/Fakes/NotificationFake.php:16
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Queue\\QueueManager' not found in wp-content/plugins/sso-flarum/vendor/illuminate/support/Testing/Fakes/QueueFake.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/sso-flarum/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidTimeZoneException.php:16
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/sso-flarum/vendor/symfony/translation/Dumper/XliffFileDumper.php:22
- > PHP Warning
require(wp-content/plugins/sso-flarum/vendor/delight-im/http/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/sso-flarum/vendor/delight-im/http/tests/index.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/sso-flarum/vendor/illuminate/support/Facades/Artisan.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/sso-flarum/vendor/illuminate/contracts/Container/BindingResolutionException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Support\\Enumerable' not found in wp-content/plugins/sso-flarum/vendor/illuminate/collections/Collection.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: flarum, php, plugin, sso, forum...
sso-flarum/sso-flarum.php Passed 13 tests
The main file in "Flarum SSO WP Plugin" v. 2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
66 characters long description:
Plugin for your WordPress website to get the SSO extension working
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Please fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/sso-flarum/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,435 | 12,588 | 45,555 | 63,188 |
JSON | 36 | 0 | 0 | 12,066 |
Markdown | 39 | 1,815 | 1 | 5,156 |
XSD | 3 | 92 | 48 | 2,803 |
XML | 3 | 11 | 1 | 104 |
reStructuredText | 1 | 74 | 78 | 74 |
JavaScript | 3 | 7 | 21 | 43 |
CSS | 2 | 6 | 1 | 31 |
make | 1 | 4 | 0 | 9 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 138)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 296.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 138.00 |
Code structure | ||
---|---|---|
Namespaces | 105 | |
Interfaces | 156 | |
Traits | 42 | |
Classes | 384 | |
▷ Abstract classes | 14 | 3.65% |
▷ Concrete classes | 370 | 96.35% |
▷ Final classes | 55 | 14.86% |
Methods | 4,262 | |
▷ Static methods | 787 | 18.47% |
▷ Public methods | 3,698 | 86.77% |
▷ Protected methods | 317 | 7.44% |
▷ Private methods | 247 | 5.80% |
Functions | 626 | |
▷ Named functions | 152 | 24.28% |
▷ Anonymous functions | 474 | 75.72% |
Constants | 250 | |
▷ Global constants | 9 | 3.60% |
▷ Class constants | 241 | 96.40% |
▷ Public constants | 239 | 99.17% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected