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.16MB] [CPU: ▼143.41ms] Passed 4 tests
Analyzing server-side resources used by Cassava CAS Server
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.12 | 37.98 ▲10.39 |
Dashboard /wp-admin | 3.28 ▲0.23 | 47.38 ▼4.09 |
Posts /wp-admin/edit.php | 3.33 ▲0.23 | 47.44 ▲0.42 |
Add New Post /wp-admin/post-new.php | 5.58 ▲0.15 | 91.34 ▼570.62 |
Media Library /wp-admin/upload.php | 3.16 ▲0.16 | 33.53 ▲0.65 |
Cassava CAS Server /wp-admin/options-general.php?page=wp-cas-server | 3.13 | 28.98 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wp_cas_server |
Browser metrics Passed 4 tests
An overview of browser requirements for Cassava CAS Server
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,689 ▲93 | 15.98 ▲0.06 | 9.84 ▼0.91 | 48.01 ▲3.20 |
Dashboard /wp-admin | 2,980 ▲46 | 5.90 ▼0.10 | 148.57 ▼17.89 | 111.44 ▼4.64 |
Posts /wp-admin/edit.php | 2,751 ▲12 | 2.70 ▼0.01 | 65.23 ▼5.36 | 81.70 ▼8.48 |
Add New Post /wp-admin/post-new.php | 1,689 ▲189 | 18.74 ▼0.15 | 387.87 ▼11.22 | 109.02 ▲1.11 |
Media Library /wp-admin/upload.php | 1,820 ▲72 | 5.04 ▲0.06 | 160.14 ▲12.52 | 117.03 ▲0.63 |
Cassava CAS Server /wp-admin/options-general.php?page=wp-cas-server | 1,142 | 2.13 | 59.95 | 73.37 |
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
- Zombie WordPress options were found after uninstall: 1 option
- wp_cas_server
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Cassava\\CAS\\Response\\BaseResponse' not found in wp-content/plugins/wp-cas-server/lib/CAS/Response/ValidateResponse.php:20
- > PHP Fatal error
Uncaught Error: Class 'Cassava\\CAS\\Response\\BaseResponse' not found in wp-content/plugins/wp-cas-server/lib/CAS/Response/ProxyResponse.php:21
- > PHP Fatal error
Uncaught Error: Class 'Cassava\\Exception\\GeneralException' not found in wp-content/plugins/wp-cas-server/lib/Exception/TicketException.php:11
- > PHP Fatal error
Uncaught Error: Class 'Cassava\\CAS\\Controller\\BaseController' not found in wp-content/plugins/wp-cas-server/lib/CAS/Controller/ValidateController.php:48
- > PHP Fatal error
Uncaught Error: Class 'Cassava\\CAS\\Controller\\ValidateController' not found in wp-content/plugins/wp-cas-server/lib/CAS/Controller/ProxyController.php:34
- > PHP Fatal error
Uncaught Error: Class 'Cassava\\CAS\\Controller\\BaseController' not found in wp-content/plugins/wp-cas-server/lib/CAS/Controller/LogoutController.php:29
- > PHP Fatal error
Uncaught Error: Class 'Cassava\\CAS\\Controller\\BaseController' not found in wp-content/plugins/wp-cas-server/lib/CAS/Controller/LoginController.php:22
- > PHP Fatal error
Uncaught Error: Class 'Cassava\\CAS\\Controller\\ServiceValidateController' not found in wp-content/plugins/wp-cas-server/lib/CAS/Controller/ProxyValidateController.php:22
- > PHP Fatal error
Uncaught Error: Class 'Cassava\\Exception\\GeneralException' not found in wp-content/plugins/wp-cas-server/lib/Exception/RequestException.php:10
- > PHP Fatal error
Uncaught Error: Class 'Cassava\\CAS\\Controller\\ValidateController' not found in wp-content/plugins/wp-cas-server/lib/CAS/Controller/ServiceValidateController.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: sso, single sign-on, jasig cas, central authentication service, cas...
wp-cas-server/wp-cas-server.php Passed 13 tests
The entry point to "Cassava CAS Server" version 1.2.3 is a PHP file that has certain tags in its header comment area
65 characters long description:
Provides authentication services based on the Jasig CAS protocol.
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
Success! There were no dangerous files found in this plugin1,358 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 448 | 1,389 | 1,262 |
PO File | 1 | 39 | 47 | 95 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 1 | 4.76% |
▷ Concrete classes | 20 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 99 | |
▷ Static methods | 10 | 10.10% |
▷ Public methods | 80 | 80.81% |
▷ Protected methods | 12 | 12.12% |
▷ Private methods | 7 | 7.07% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 21 | |
▷ Global constants | 1 | 4.76% |
▷ Class constants | 20 | 95.24% |
▷ Public constants | 20 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin