83% orbisius-support-tickets

Code Review | Orbisius Support Tickets

WordPress plugin Orbisius Support Tickets scored83%from 54 tests.

About plugin

  • Plugin page: orbisius-support-...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Jan 14, 2019
  • Latest release: Feb 1, 2019
  • Number of updates: 27
  • Update frequency: every 0.7 days
  • Top authors: lordspace (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /846 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.45ms] Passed 4 tests

Analyzing server-side resources used by Orbisius Support Tickets
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1037.79 ▼2.38
Dashboard /wp-admin3.39 ▲0.0945.18 ▼7.50
Posts /wp-admin/edit.php3.51 ▲0.1548.11 ▼6.03
Add New Post /wp-admin/post-new.php5.97 ▲0.0892.28 ▲2.11
Media Library /wp-admin/upload.php3.31 ▲0.0935.62 ▲3.34
About /wp-admin/admin.php?page=orbisius_support_tickets_about3.2931.96
Dashboard /wp-admin/admin.php?page=orbisius_support_tickets3.2933.87
Settings /wp-admin/admin.php?page=orbisius_support_tickets_settings3.3035.87

Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Orbisius Support Tickets: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.66 ▼0.711.77 ▲0.0239.74 ▼3.35
Dashboard /wp-admin2,237 ▲495.85 ▲0.81110.39 ▲5.5443.56 ▲0.45
Posts /wp-admin/edit.php2,123 ▲342.13 ▲0.1241.50 ▲4.2633.74 ▲0.74
Add New Post /wp-admin/post-new.php1,546 ▲2023.14 ▼0.36603.58 ▼29.8648.85 ▼11.50
Media Library /wp-admin/upload.php1,419 ▲284.12 ▼0.0696.11 ▲0.2139.83 ▼4.82
About /wp-admin/admin.php?page=orbisius_support_tickets_about9781.9528.1729.99
Dashboard /wp-admin/admin.php?page=orbisius_support_tickets1,0031.9627.6127.07
Settings /wp-admin/admin.php?page=orbisius_support_tickets_settings1,5592.1136.2932.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/orbisius-support-tickets/orbisius-support-tickets.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-support-tickets/modules/core/notifications.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-support-tickets/modules/core/admin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-support-tickets/modules/core/assets.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-support-tickets/modules/core/shortcodes.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-support-tickets/modules/core/lang.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Orbisius_Support_Tickets_Module_Core_CPT' not found in wp-content/plugins/orbisius-support-tickets/modules/core/cpt.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Plugin's settings page) image required
You can take inspiration from this readme.txt

orbisius-support-tickets/orbisius-support-tickets.php 85% from 13 tests

The main PHP file in "Orbisius Support Tickets" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Domain Path: The domain path folder does not exist ("/lang")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected4,698 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP157648343,067
JavaScript4106171,217
CSS38227414

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity31.08
▷ Minimum class complexity2.00
▷ Maximum class complexity72.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods160
▷ Static methods3018.75%
▷ Public methods160100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants27
▷ Global constants725.93%
▷ Class constants2074.07%
▷ Public constants20100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.36MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/help/images/email_from_stuff.png4.71KB3.20KB▼ 32.05%
screenshot-1.png14.79KB8.66KB▼ 41.47%
screenshot-3.png59.71KB24.11KB▼ 59.62%
screenshot-4.png31.72KB12.41KB▼ 60.89%
screenshot-5.png83.75KB36.86KB▼ 55.99%