66% scebo

Code Review | Scebo - Customer Support

WordPress plugin Scebo - Customer Support scored 66% from 54 tests.

About plugin

  • Plugin page: scebo
  • Plugin version: 1.5b1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.4.2
  • WordPress version: 5.8.1
  • First release: Nov 20, 2012
  • Latest release: Jan 25, 2013
  • Number of updates: 26
  • Update frequency: every 2.6 days
  • Top authors: themeskingdom (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 6,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 gracefully, with no errors

Server metrics [RAM: ▼0.19MB] [CPU: ▼141.50ms] Passed 4 tests

Analyzing server-side resources used by Scebo - Customer Support
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1948.39 ▲25.25
Dashboard /wp-admin3.23 ▲0.1756.24 ▲10.53
Posts /wp-admin/edit.php3.27 ▲0.1661.37 ▲15.31
Add New Post /wp-admin/post-new.php4.16 ▼1.2758.88 ▼605.15
Media Library /wp-admin/upload.php3.19 ▲0.1949.03 ▲13.32
Scebo Options /wp-admin/admin.php?page=scb_admin_welcome3.1440.30
Notifications /wp-admin/admin.php?page=scb_admin_notifications3.1434.32
Tickets Categories /wp-admin/edit-tags.php?taxonomy=ticket-category&post_type=tickets3.1640.32
Tickets Statuses /wp-admin/edit-tags.php?taxonomy=ticket-status&post_type=tickets3.1138.24
Tickets Priorities /wp-admin/edit-tags.php?taxonomy=ticket-priority&post_type=tickets3.1745.73
All Tickets /wp-admin/edit.php?post_type=tickets3.1846.86
Add New /wp-admin/post-new.php?post_type=tickets3.0544.56

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
ticket-category_children
scb_registration_notification_email
ticket-status_children
scb_ticket_update_notification_email
scb_ticket_confirmation_notification_email
scb_plugin_sample_taxonomy_insert
ticket-priority_children

Browser metrics Passed 4 tests

A check of browser resources used by Scebo - Customer Support
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,804 ▲23216.18 ▲0.6011.94 ▲3.6160.08 ▲15.22
Dashboard /wp-admin3,056 ▲1255.88 ▼0.06143.36 ▼12.00140.65 ▲18.41
Posts /wp-admin/edit.php2,835 ▲962.82 ▲0.0276.43 ▲2.51104.01 ▲11.34
Add New Post /wp-admin/post-new.php1,749 ▲6618.76 ▲0.30424.87 ▲38.00127.01 ▲13.44
Media Library /wp-admin/upload.php1,847 ▲405.03 ▼0.01138.94 ▼37.54159.82 ▲29.04
Scebo Options /wp-admin/admin.php?page=scb_admin_welcome1,2162.2253.9288.08
Notifications /wp-admin/admin.php?page=scb_admin_notifications1,3012.2161.0471.67
Tickets Categories /wp-admin/edit-tags.php?taxonomy=ticket-category&post_type=tickets1,9652.4961.3194.03
Tickets Statuses /wp-admin/edit-tags.php?taxonomy=ticket-status&post_type=tickets2,1322.5061.8786.85
Tickets Priorities /wp-admin/edit-tags.php?taxonomy=ticket-priority&post_type=tickets2,1782.5355.9695.02
All Tickets /wp-admin/edit.php?post_type=tickets2,5932.7276.85129.71
Add New /wp-admin/post-new.php?post_type=tickets3,3288.84229.89179.50

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • scb_ticket_update_notification_email
    • scb_registration_notification_email
    • ticket-category_children
    • scb_ticket_confirmation_notification_email
    • ticket-priority_children
    • ticket-status_children
    • scb_plugin_sample_taxonomy_insert

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/edit-tags.php?taxonomy=ticket-status&post_type=tickets
    • > Notice in wp-content/plugins/scebo/inc/taxonomies.php+159
    Trying to get property 'term_id' of non-object
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=tickets
    • > Notice in wp-content/plugins/scebo/inc/tickets-columns.php+55
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/post-new.php?post_type=tickets
    • > Notice in wp-content/plugins/scebo/inc/meta-boxes.php+235
    Undefined index: scebo_meta_box_nonce

SRP 0% 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/scebo/admin-pages/admin-help.php
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/scebo/admin-pages/admin-notifications.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scebo/inc/taxonomies.php:156
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/scebo/admin-pages/admin-options.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/scebo/inc/install.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scebo/inc/post-types.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scebo/inc/meta-boxes.php:74
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/scebo/index.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/scebo/inc/tickets-columns.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=tickets
    • > Network (severe)
    wp-content/plugins/scebo//inc/style/img/settings-icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=tickets
    • > Network (severe)
    wp-content/plugins/scebo/inc/style/img/ticket-icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === scebo === )
The official readme.txt is a good inspiration

scebo/index.php 85% from 13 tests

The main file in "Scebo - Customer Support" v. 1.5b1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("scebo.php" instead of "index.php")
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1.5b1")

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
Good job! No executable or dangerous file extensions detected1,352 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP11395801,002
CSS4687347
JavaScript1003

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity47.00
▷ Minimum class complexity47.00
▷ Maximum class complexity47.00
Average method complexity12.50
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin