68% nanosupport

Code Review | NanoSupport — Support Ticketing & Knowledgebase for WordPress

WordPress plugin NanoSupport — Support Ticketing & Knowledgebase for WordPress scored68%from 54 tests.

About plugin

  • Plugin page: nanosupport
  • Plugin version: 0.6.0
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.7
  • WordPress version: 6.3.1
  • First release: Jun 17, 2016
  • Latest release: Apr 2, 2021
  • Number of updates: 62
  • Update frequency: every 28.2 days
  • Top authors: wzislam (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

200+ active /11,229 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▼36.94ms] Passed 4 tests

A check of server-side resources used by NanoSupport — Support Ticketing & Knowledgebase for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.74 ▲1.2866.14 ▲23.26
Dashboard /wp-admin4.19 ▲0.8432.51 ▼41.17
Posts /wp-admin/edit.php4.19 ▲0.8332.15 ▼23.57
Add New Post /wp-admin/post-new.php4.19 ▼1.7032.49 ▼78.02
Media Library /wp-admin/upload.php4.19 ▲0.9634.91 ▼5.01
Knowledgebase /wp-admin/edit.php?post_type=nanodoc4.1931.37
Add New /wp-admin/post-new.php?post_type=nanodoc4.1929.38
NanoSupport /wp-admin/edit.php?post_type=nanosupport4.1933.70
Departments /wp-admin/edit-tags.php?taxonomy=nanosupport_department&post_type=nanosupport4.1930.71
System Status /wp-admin/edit.php?post_type=nanosupport&page=nanosupport-system-status4.1931.37
Settings /wp-admin/edit.php?post_type=nanosupport&page=nanosupport-settings4.1930.06
Categories /wp-admin/edit-tags.php?taxonomy=nanodoc_category&post_type=nanodoc4.1930.42
Add New /wp-admin/post-new.php?post_type=nanosupport4.1931.16

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 72 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
nanosupport_version
nanosupport_email_settings
nanosupport_knowledgebase_settings
nanosupport_settings
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for NanoSupport — Support Ticketing & Knowledgebase for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,274 ▲52814.59 ▲0.302.82 ▲1.1628.78 ▼16.75
Dashboard /wp-admin2,674 ▲5006.20 ▲0.64124.87 ▲27.0456.23 ▲14.08
Posts /wp-admin/edit.php2,174 ▲741.99 ▼0.0135.52 ▼6.9437.39 ▲4.14
Add New Post /wp-admin/post-new.php1,588 ▲5723.21 ▲0.08675.35 ▼39.4051.63 ▼6.89
Media Library /wp-admin/upload.php1,477 ▲774.16 ▼0.0998.62 ▼18.2143.10 ▼6.04
Knowledgebase /wp-admin/edit.php?post_type=nanodoc1,1612.3843.0628.79
Add New /wp-admin/post-new.php?post_type=nanodoc2,3648.02185.7266.35
NanoSupport /wp-admin/edit.php?post_type=nanosupport1,2922.5438.3231.64
Departments /wp-admin/edit-tags.php?taxonomy=nanosupport_department&post_type=nanosupport1,3512.1226.2031.99
System Status /wp-admin/edit.php?post_type=nanosupport&page=nanosupport-system-status1,1692.1228.7449.77
Settings /wp-admin/edit.php?post_type=nanosupport&page=nanosupport-settings1,4552.2938.6359.97
Categories /wp-admin/edit-tags.php?taxonomy=nanodoc_category&post_type=nanodoc1,6532.2731.2632.89
Add New /wp-admin/post-new.php?post_type=nanosupport2,7628.38173.7266.47

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
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/nanosupport/includes/ns-functions.php+31
    Trying to get property 'parent_base' of non-object
  • Zombie WordPress options detected upon uninstall: 10 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • nanosupport_knowledgebase_settings
    • nanosupport_version
    • nanosupport_settings
    • theysaidso_admin_options
    • nanosupport_email_settings
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 40 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nanosupport
    • > Notice in wp-content/plugins/nanosupport/includes/ns-functions.php+31
    Trying to get property 'parent_base' of non-object

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
The following issues need your attention
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nanosupport/templates/content-email.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nanosupport/includes/admin/__nanodesigns.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nanosupport/templates/content-single-ticket.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nanosupport/includes/ns-dashboard.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

nanosupport/nanosupport.php 92% from 13 tests

Analyzing the main PHP file in "NanoSupport — Support Ticketing & Knowledgebase for WordPress" version 0.6.0
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 205 characters long)

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
No dangerous file extensions were detected9,364 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
PHP301,6302,7965,332
Sass157311463,095
CSS6214493
JavaScript1372175305
SVG110139

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity26.75
▷ Minimum class complexity2.00
▷ Maximum class complexity72.00
Average method complexity4.43
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods30
▷ Static methods826.67%
▷ Public methods2893.33%
▷ Protected methods00.00%
▷ Private methods26.67%
Functions163
▷ Named functions163100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/nskb-search-advertisement.png13.90KB13.79KB▼ 0.81%