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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼7.07ms] Passed 4 tests
Server-side resources used by Tim's Nextcloud SSO OAuth2
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 35.33 ▼7.57 |
Dashboard /wp-admin | 3.45 ▲0.15 | 45.85 ▼3.58 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 48.16 ▼3.48 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 91.83 ▼13.64 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 40.96 ▲7.23 |
Nextcloud OAuth2 /wp-admin/options-general.php?page=tims-nextcloud-sso-oauth2/includes/options-page.php | 3.34 | 37.51 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Tim's Nextcloud SSO OAuth2
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.48 ▲0.04 | 1.91 ▼0.03 | 40.59 ▼5.82 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.05 | 110.24 ▲7.10 | 40.46 ▼2.12 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.09 | 39.16 ▼3.92 | 34.65 ▼0.88 |
Add New Post /wp-admin/post-new.php | 1,531 ▼2 | 23.07 ▲0.01 | 623.81 ▲24.59 | 51.34 ▼0.47 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.18 ▼0.03 | 97.15 ▼1.69 | 42.47 ▼1.07 |
Nextcloud OAuth2 /wp-admin/options-general.php?page=tims-nextcloud-sso-oauth2/includes/options-page.php | 1,257 | 1.87 | 29.25 | 61.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests Passed 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)
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: nextcloud, single sign-on, oauth 20, wordpress sso, login
tims-nextcloud-sso-oauth2/tims-nextcloud-sso-oauth2.php Passed 13 tests
Analyzing the main PHP file in "Tim's Nextcloud SSO OAuth2" version 2.0.2
83 characters long description:
Enables you to login to your WordPress site with your Nextcloud account with OAuth2
Code Analysis Passed 3 tests
File types Passed 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
Good job! No executable or dangerous file extensions detected1,138 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 139 | 58 | 621 |
PO File | 2 | 140 | 151 | 414 |
Sass | 1 | 3 | 0 | 102 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
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
There were not PNG files found in your plugin