84% sympose

Code Review | Sympose

WordPress plugin Sympose scored84%from 54 tests.

About plugin

  • Plugin page: sympose
  • Plugin version: 1.4.8.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7.2
  • WordPress version: 6.3.1
  • First release: Dec 15, 2017
  • Latest release: Sep 20, 2023
  • Number of updates: 107
  • Update frequency: every 19.9 days
  • Top authors: mklasen (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

80+ active /5,520 total downloads

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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.64MB] [CPU: ▲11.89ms] Passed 4 tests

A check of server-side resources used by Sympose
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.04 ▲1.5846.35 ▲1.20
Dashboard /wp-admin4.97 ▲1.6765.45 ▲18.29
Posts /wp-admin/edit.php5.00 ▲1.6560.73 ▲12.36
Add New Post /wp-admin/post-new.php7.91 ▲2.02101.80 ▲16.47
Media Library /wp-admin/upload.php4.89 ▲1.6651.83 ▲17.51
  ↳ Categories /wp-admin/edit-tags.php?taxonomy=person-category&post_type=person4.8947.44
Quick Start /wp-admin/edit.php?post_type=session&page=sympose-quick-start4.8043.83
People /wp-admin/edit.php?post_type=person4.9553.70
Sessions /wp-admin/edit.php?post_type=session4.9547.92
Organisations /wp-admin/edit.php?post_type=organisation4.9552.92
  ↳ Categories /wp-admin/edit-tags.php?taxonomy=organisation-category&post_type=organisation4.8944.98
Events /wp-admin/edit-tags.php?taxonomy=event&post_type=session5.1850.24
Settings /wp-admin/admin.php?page=sympose5.2547.70
Shortcodes /wp-admin/edit.php?post_type=session&page=sympose-shortcodes4.8044.76

Server storage [IO: ▲3.41MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 423 new files
Database: no new tables, 11 new options
New WordPress options
sympose
widget_recent-comments
can_compress_scripts
widget_sympose_session_information
widget_sympose_session_participants
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
session-status_children
widget_recent-posts
...

Browser metrics Passed 4 tests

An overview of browser requirements for Sympose
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,814 ▲1,05316.15 ▲1.4815.76 ▲13.4736.29 ▼6.96
Dashboard /wp-admin3,092 ▲8896.31 ▲0.52137.22 ▲17.6648.71 ▲3.89
Posts /wp-admin/edit.php2,975 ▲8723.38 ▲1.4067.95 ▲30.3646.33 ▲13.77
Add New Post /wp-admin/post-new.php6,923 ▲5,36924.84 ▲6.52944.95 ▲318.4344.88 ▼24.89
Media Library /wp-admin/upload.php2,266 ▲8695.43 ▲1.19121.43 ▲21.4053.02 ▲10.85
  ↳ Categories /wp-admin/edit-tags.php?taxonomy=person-category&post_type=person2,1543.0562.1438.61
Quick Start /wp-admin/edit.php?post_type=session&page=sympose-quick-start1,6112.8742.4228.88
People /wp-admin/edit.php?post_type=person1,9693.1651.6339.75
Sessions /wp-admin/edit.php?post_type=session1,9773.2652.7034.36
Organisations /wp-admin/edit.php?post_type=organisation1,9683.2052.2938.26
  ↳ Categories /wp-admin/edit-tags.php?taxonomy=organisation-category&post_type=organisation2,1553.0046.7936.33
Events /wp-admin/edit-tags.php?taxonomy=event&post_type=session2,2213.1449.2237.81
Settings /wp-admin/admin.php?page=sympose2,0092.8951.5539.89
Shortcodes /wp-admin/edit.php?post_type=session&page=sympose-shortcodes1,6462.8648.3734.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 11 options in the database
    • widget_sympose_session_participants
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • session-status_children
    • widget_sympose_session_information
    • widget_sympose_profile
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • ...

Smoke tests 75% from 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 42× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/sympose/vendor/cmb2/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/sympose/vendor/cmb2/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/sympose/vendor/cmb2/cmb2/includes/types/CMB2_Type_File_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/sympose/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/sympose/vendor/cmb2/cmb2/includes/types/CMB2_Type_File.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/sympose/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Date.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sympose/vendor/cmb2/cmb2/example-functions.php:105
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/sympose/vendor/cmb2/cmb2/includes/types/CMB2_Type_File_List.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/sympose/vendor/cmb2/cmb2/includes/types/CMB2_Type_Checkbox.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sympose/vendor/cmb2/cmb2/includes/helper-functions.php:131

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: sessions, schedule, conference, speakers, sponsors

sympose/sympose.php Passed 13 tests

"Sympose" version 1.4.8.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
39 characters long description:
Manage events on your WordPress website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin55,566 lines of code in 267 files:
LanguageFilesBlank linesComment linesLines of code
PO File12414,88219,19533,709
PHP863,1937,93711,821
CSS213141,2025,308
JavaScript155126762,499
Sass17306291,411
Markdown32440755
JSON10063

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity21.66
▷ Minimum class complexity1.00
▷ Maximum class complexity232.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes87
▷ Abstract classes910.34%
▷ Concrete classes7889.66%
▷ Final classes00.00%
Methods686
▷ Static methods11316.47%
▷ Public methods58785.57%
▷ Protected methods8912.97%
▷ Private methods101.46%
Functions71
▷ Named functions4056.34%
▷ Anonymous functions3143.66%
Constants10
▷ Global constants440.00%
▷ Class constants660.00%
▷ Public constants6100.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
14 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/cmb2/cmb2/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
vendor/cmb2/cmb2/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%
vendor/cmb2/cmb2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
vendor/cmb2/cmb2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
vendor/cmb2/cmb2/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%