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
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.81ms] Passed 4 tests
Server-side resources used by PrimeTime WordPress + Discourse SSO
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.56 ▼8.92 |
Dashboard /wp-admin | 3.52 ▲0.22 | 57.24 ▲3.13 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 58.21 ▲6.68 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 90.72 ▼8.44 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 39.00 ▲3.01 |
WP Discourse SSO /wp-admin/options-general.php?page=wp-sso-settings | 3.35 | 38.62 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
pt_wp_sso_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PrimeTime WordPress + Discourse SSO
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,983 ▲222 | 14.67 ▲0.11 | 1.78 ▼0.10 | 42.76 ▲0.42 |
Dashboard /wp-admin | 2,386 ▲218 | 6.34 ▲0.65 | 119.58 ▲31.41 | 42.36 ▼0.97 |
Posts /wp-admin/edit.php | 2,326 ▲226 | 3.63 ▲1.60 | 57.08 ▲19.53 | 33.83 ▼0.31 |
Add New Post /wp-admin/post-new.php | 1,571 ▲43 | 23.26 ▲0.06 | 633.99 ▼40.01 | 37.89 ▼15.03 |
Media Library /wp-admin/upload.php | 1,460 ▲63 | 4.26 ▲0.16 | 90.95 ▼30.71 | 44.12 ▼3.36 |
WP Discourse SSO /wp-admin/options-general.php?page=wp-sso-settings | 1,082 | 3.55 | 46.70 | 30.46 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- pt_wp_sso_settings
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pt-wp-discourse-sso/admin/includes/class.settings.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #4, #5 in pt-wp-discourse-sso/assets to your readme.txt
pt-wp-discourse-sso/pt-wp-discourse-sso.php Passed 13 tests
The main PHP script in "PrimeTime WordPress + Discourse SSO" version 0.2.3 is automatically included on every request by WordPress
46 characters long description:
Single Sign on between WordPress and Discourse
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin622 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 165 | 418 | 613 |
JSON | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 7 | 13.46% |
▷ Public methods | 43 | 82.69% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 17.31% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin