68% ce21-suite

Code Review | CE21 Suite

WordPress plugin CE21 Suite scored68%from 54 tests.

About plugin

  • Plugin page: ce21-suite
  • Plugin version: 2.1.8
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 5, 2023
  • Latest release: Apr 4, 2023
  • Number of updates: 10
  • Update frequency: every 11.7 days
  • Top authors: ce21com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /618 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.12 ▼1.67
Dashboard /wp-admin3.38 ▲0.0746.68 ▼11.26
Posts /wp-admin/edit.php3.43 ▲0.0752.08 ▼4.04
Add New Post /wp-admin/post-new.php5.98 ▲0.1093.58 ▲2.68
Media Library /wp-admin/upload.php3.30 ▲0.0735.94 ▲1.28
Calendar /wp-admin/admin.php?page=calendar3.3133.08
Group Settings /wp-admin/admin.php?page=single_sign_on_ce213.2734.38
API Settings /wp-admin/admin.php?page=api_settings3.3032.41
Program List Settings /wp-admin/admin.php?page=program_list_settings3.3335.24
Directory /wp-admin/admin.php?page=directory_settings3.3033.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,994 ▲23714.60 ▲0.309.37 ▲7.5035.52 ▼6.10
Dashboard /wp-admin2,250 ▲625.16 ▼0.74114.03 ▲11.6876.00 ▲33.31
Posts /wp-admin/edit.php2,164 ▲712.08 ▲0.0941.21 ▼7.5537.77 ▼12.53
Add New Post /wp-admin/post-new.php6,217 ▲4,67623.50 ▲0.47845.00 ▲180.6236.58 ▼14.74
Media Library /wp-admin/upload.php1,449 ▲614.47 ▲0.24110.84 ▲15.7784.29 ▲42.51
Calendar /wp-admin/admin.php?page=calendar3,3553.71104.3651.49
Group Settings /wp-admin/admin.php?page=single_sign_on_ce211,1162.8064.6827.63
API Settings /wp-admin/admin.php?page=api_settings9262.0335.1726.98
Program List Settings /wp-admin/admin.php?page=program_list_settings8581.9632.8923.50
Directory /wp-admin/admin.php?page=directory_settings8562.0533.2821.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

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: ""
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript241,5266,1706,730
PHP356241,1673,937
CSS1292601,562
Markdown1320168
JSON30084

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 code0.34
Average class complexity11.12
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods75
▷ Static methods1621.33%
▷ Public methods6688.00%
▷ Protected methods00.00%
▷ Private methods912.00%
Functions57
▷ Named functions5698.25%
▷ Anonymous functions11.75%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.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
FileSize - originalSize - compressedSavings
admin/images/sort_both.png0.20KB0.29KB0.00%
admin/images/sort_desc_disabled.png0.14KB0.25KB0.00%
admin/images/sort_desc.png0.15KB0.25KB0.00%
admin/images/sort_asc.png0.16KB0.25KB0.00%
admin/images/sort_asc_disabled.png0.14KB0.25KB0.00%