83% norby-ai

Code Review | Norby AI

WordPress plugin Norby AI scored83%from 54 tests.

About plugin

  • Plugin page: norby-ai
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Nov 29, 2022
  • Latest release: Jun 5, 2023
  • Number of updates: 8
  • Update frequency: every 24.0 days
  • Top authors: jevgenisultanov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /276 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.06MB] [CPU: ▼3.20ms] Passed 4 tests

A check of server-side resources used by Norby AI
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.03 ▼3.70
Dashboard /wp-admin3.36 ▲0.0652.91 ▼0.89
Posts /wp-admin/edit.php3.42 ▲0.0651.45 ▲1.32
Add New Post /wp-admin/post-new.php5.96 ▲0.0885.69 ▼7.37
Media Library /wp-admin/upload.php3.29 ▲0.0636.29 ▼0.85

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 19 new options
New WordPress options
norby_api_key
norby_icon_color
norby_image_transfer
norby_side
theysaidso_admin_options
db_upgraded
norby_locale
norby_color
norby_information_page
norby_bot_name
...

Browser metrics Passed 4 tests

An overview of browser requirements for Norby AI
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14513.71 ▼0.7912.86 ▲10.8847.55 ▲8.76
Dashboard /wp-admin2,239 ▲625.68 ▼0.0192.28 ▲1.8838.76 ▼6.66
Posts /wp-admin/edit.php2,141 ▲382.06 ▲0.0738.15 ▲0.1034.93 ▼2.93
Add New Post /wp-admin/post-new.php1,544 ▲1622.90 ▼0.22640.91 ▼14.3469.11 ▲8.91
Media Library /wp-admin/upload.php1,444 ▲444.26 ▲0.05102.26 ▼13.7146.42 ▼1.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/norby-ai/view/widget.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/norby-ai/api/save.php:70
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/norby-ai/view/settings.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/norby-ai/norby.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

norby-ai/norby.php 85% from 13 tests

The main PHP script in "Norby AI" version 1.0.3 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("norby-ai.php" instead of "norby.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected520 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP53114384
CSS114091
JavaScript13045

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants52
▷ Global constants611.54%
▷ Class constants4688.46%
▷ Public constants46100.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