84% helpninja

Code Review | HelpNinja

WordPress plugin HelpNinja scored84%from 54 tests.

About plugin

  • Plugin page: helpninja
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.0.3
  • WordPress version: 6.3.1
  • First release: May 6, 2019
  • Latest release: May 6, 2019
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: vinodhdavid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /566 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.53ms] Passed 4 tests

Server-side resources used by HelpNinja
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.71 ▼1.44
Dashboard /wp-admin3.38 ▲0.0844.92 ▼4.66
Posts /wp-admin/edit.php3.49 ▲0.1446.78 ▲0.83
Add New Post /wp-admin/post-new.php5.98 ▲0.0988.72 ▼8.68
Media Library /wp-admin/upload.php3.30 ▲0.0733.79 ▲0.67
HelpNinja /wp-admin/options-general.php?page=help-ninja-setting3.2729.00

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 12 new options
New WordPress options
helpninja_app_version
helpninja_api_key
helpninja_edd_api_key
helpninja_db_version
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
helpninja_lantern_enable
widget_recent-comments
db_upgraded
...

Browser metrics Passed 4 tests

A check of browser resources used by HelpNinja
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲15813.87 ▼0.535.37 ▲3.6238.30 ▼3.42
Dashboard /wp-admin2,215 ▲305.86 ▼0.02106.83 ▲1.6642.25 ▲2.49
Posts /wp-admin/edit.php2,098 ▲92.04 ▲0.0438.85 ▼0.1634.73 ▲0.14
Add New Post /wp-admin/post-new.php1,545 ▲218.32 ▲0.15622.13 ▼1.9053.32 ▲0.56
Media Library /wp-admin/upload.php1,397 ▲124.25 ▲0.0694.95 ▼6.4342.98 ▼1.41
HelpNinja /wp-admin/options-general.php?page=help-ninja-setting8192.0325.7625.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/helpninja/admin/view/hn_woocommerce_setting_form.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/helpninja/admin/view/hn_edd_setting_form.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/helpninja/admin/view/hn_lantern_setting_form.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: helpninja, helpdesk, simple, supportdesk

helpninja/init.php 92% from 13 tests

Analyzing the main PHP file in "HelpNinja" version 1.0.0
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("helpninja.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected471 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP64421335
JavaScript298136

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.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
No PNG images were found in this plugin