Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.92ms] Passed 4 tests
A check of server-side resources used by CE21 Suite
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.12 ▼1.67 |
Dashboard /wp-admin | 3.38 ▲0.07 | 46.68 ▼11.26 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 52.08 ▼4.04 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 93.58 ▲2.68 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.94 ▲1.28 |
Calendar /wp-admin/admin.php?page=calendar | 3.31 | 33.08 |
Group Settings /wp-admin/admin.php?page=single_sign_on_ce21 | 3.27 | 34.38 |
API Settings /wp-admin/admin.php?page=api_settings | 3.30 | 32.41 |
Program List Settings /wp-admin/admin.php?page=program_list_settings | 3.33 | 35.24 |
Directory /wp-admin/admin.php?page=directory_settings | 3.30 | 33.39 |
Server storage [IO: ▲1.87MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 98 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_ce21_calendar_events |
wp_membership_types_ce21 |
wp_ce21_api_settings |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for CE21 Suite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,994 ▲237 | 14.60 ▲0.30 | 9.37 ▲7.50 | 35.52 ▼6.10 |
Dashboard /wp-admin | 2,250 ▲62 | 5.16 ▼0.74 | 114.03 ▲11.68 | 76.00 ▲33.31 |
Posts /wp-admin/edit.php | 2,164 ▲71 | 2.08 ▲0.09 | 41.21 ▼7.55 | 37.77 ▼12.53 |
Add New Post /wp-admin/post-new.php | 6,217 ▲4,676 | 23.50 ▲0.47 | 845.00 ▲180.62 | 36.58 ▼14.74 |
Media Library /wp-admin/upload.php | 1,449 ▲61 | 4.47 ▲0.24 | 110.84 ▲15.77 | 84.29 ▲42.51 |
Calendar /wp-admin/admin.php?page=calendar | 3,355 | 3.71 | 104.36 | 51.49 |
Group Settings /wp-admin/admin.php?page=single_sign_on_ce21 | 1,116 | 2.80 | 64.68 | 27.63 |
API Settings /wp-admin/admin.php?page=api_settings | 926 | 2.03 | 35.17 | 26.98 |
Program List Settings /wp-admin/admin.php?page=program_list_settings | 858 | 1.96 | 32.89 | 23.50 |
Directory /wp-admin/admin.php?page=directory_settings | 856 | 2.05 | 33.28 | 21.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_membership_types_ce21
- wp_ce21_api_settings
- wp_ce21_calendar_events
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ce21-suite/admin/partials/ce21-single-sign-on-calendar-event-list.php
- > /wp-content/plugins/ce21-suite/admin/partials/single-sign-on-ce21-admin-display.php
- > /wp-content/plugins/ce21-suite/public/partials/single-sign-on-ce21-public-display.php
- > /wp-content/plugins/ce21-suite/public/partials/single-sign-on-ce21-calendar.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ce21-suite/membership/ce21-membership-functions.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function get_access_token() in wp-content/plugins/ce21-suite/membership/ce21-membership-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/ce21-suite/admin/partials/ce21-single-sign-on-calendar-event-list.php:149
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ce21-suite/includes/ce21-functions.php:81
- > PHP Fatal error
Uncaught Error: Call to undefined function get_ce21_ss_api_settings_data() in wp-content/plugins/ce21-suite/admin/partials/ce21-single-sign-on-api-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ce21-suite/public/partials/single-sign-on-ce21-sso-sign-in.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ce21-suite/programs/ce21-programs-functions.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_access_token() in wp-content/plugins/ce21-suite/programs/ce21-programs-settings-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ce21-suite/includes/quick-edit-functions.php:8
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Donate link: Please fix this invalid url: ""
ce21-suite/single-sign-on-ce21.php 85% from 13 tests
"CE21 Suite" version 2.1.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ce21-suite.php" instead of "single-sign-on-ce21.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin12,481 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 24 | 1,526 | 6,170 | 6,730 |
PHP | 35 | 624 | 1,167 | 3,937 |
CSS | 12 | 92 | 60 | 1,562 |
Markdown | 1 | 32 | 0 | 168 |
JSON | 3 | 0 | 0 | 84 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 11.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 16 | 21.33% |
▷ Public methods | 66 | 88.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 12.00% |
Functions | 57 | |
▷ Named functions | 56 | 98.25% |
▷ Anonymous functions | 1 | 1.75% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
admin/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
admin/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
admin/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
admin/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |