67% wp-conference-schedule

Code Review | WP Conference Schedule

WordPress plugin WP Conference Schedule scored67%from 54 tests.

About plugin

  • Plugin page: wp-conference-sch...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.9.1
  • WordPress version: 6.3.1
  • First release: May 6, 2019
  • Latest release: Mar 9, 2022
  • Number of updates: 22
  • Update frequency: every 47.2 days
  • Top authors: stevejonesdev (77.27%)roadwarriorwp (27.27%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /4,206 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲4.57MB] [CPU: ▼4.95ms] Passed 4 tests

This is a short check of server-side resources used by WP Conference Schedule
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /8.56 ▲5.1070.60 ▲31.45
Dashboard /wp-admin8.58 ▲5.2856.38 ▲8.85
Posts /wp-admin/edit.php8.58 ▲5.2353.66 ▲8.02
Add New Post /wp-admin/post-new.php8.58 ▲2.7050.54 ▼59.52
Media Library /wp-admin/upload.php8.58 ▲5.3557.11 ▲22.87
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius8.5849.01
Tracks /wp-admin/edit-tags.php?taxonomy=wpcs_track&post_type=wpcs_session8.5849.71
Add New /wp-admin/post-new.php?post_type=wpcs_session8.5852.63
Locations /wp-admin/edit-tags.php?taxonomy=wpcs_location&post_type=wpcs_session8.5855.16
Sessions /wp-admin/edit.php?post_type=wpcs_session8.5848.17
WP Conference Schedule /wp-admin/options-general.php?page=wp-conference-schedule8.5850.06

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 515 new files
Database: no new tables, 10 new options
New WordPress options
fs_debug_mode
fs_gdpr
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
fs_accounts
can_compress_scripts
fs_active_plugins
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WP Conference Schedule
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲14213.32 ▼1.322.08 ▲0.4032.44 ▼8.23
Dashboard /wp-admin2,285 ▲1005.18 ▲0.28111.49 ▲8.8543.11 ▲0.67
Posts /wp-admin/edit.php2,162 ▲732.08 ▲0.0338.57 ▼1.6433.47 ▼1.60
Add New Post /wp-admin/post-new.php6,405 ▲4,87127.92 ▲4.67892.95 ▲275.8137.53 ▼13.58
Media Library /wp-admin/upload.php1,461 ▲704.28 ▲0.0897.11 ▼3.5045.20 ▼0.33
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,1051.8026.3727.63
Tracks /wp-admin/edit-tags.php?taxonomy=wpcs_track&post_type=wpcs_session1,3372.4829.1635.28
Add New /wp-admin/post-new.php?post_type=wpcs_session6,64619.94826.6736.50
Locations /wp-admin/edit-tags.php?taxonomy=wpcs_location&post_type=wpcs_session1,3402.3935.1937.05
Sessions /wp-admin/edit.php?post_type=wpcs_session1,1702.2433.9431.42
WP Conference Schedule /wp-admin/options-general.php?page=wp-conference-schedule1,0341.7727.1449.49

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin does not fully uninstall, leaving 10 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • fs_debug_mode
    • fs_active_plugins
    • fs_gdpr
    • theysaidso_admin_options
    • fs_accounts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-conference-schedule
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

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
Please fix the following
  • 43× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/wp-conference-schedule/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/wp-conference-schedule/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/wp-conference-schedule/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/wp-conference-schedule/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/wp-conference-schedule/cmb2/includes/types/CMB2_Type_Radio.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/wp-conference-schedule/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/wp-conference-schedule/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/wp-conference-schedule/inc/post-types.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/wp-conference-schedule/cmb2/includes/types/CMB2_Type_File_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/wp-conference-schedule/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

wp-conference-schedule/wp-conference-schedule.php 85% from 13 tests

The main PHP script in "WP Conference Schedule" version 1.1.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 153 characters long)
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected80,032 lines of code in 332 files:
LanguageFilesBlank linesComment linesLines of code
PHP1699,67722,67738,674
PO File12014,31518,50232,323
CSS263621,2406,222
JavaScript124066541,817
Markdown43120969
JSON10027

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity47.45
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes114
▷ Abstract classes119.65%
▷ Concrete classes10390.35%
▷ Final classes00.00%
Methods1,689
▷ Static methods26215.51%
▷ Public methods1,25774.42%
▷ Protected methods1046.16%
▷ Private methods32819.42%
Functions146
▷ Named functions146100.00%
▷ Anonymous functions00.00%
Constants136
▷ Global constants10577.21%
▷ Class constants3122.79%
▷ Public constants31100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
cmb2/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
cmb2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
cmb2/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%