84% deepi

Code Review | Deepi

WordPress plugin Deepi scored84%from 54 tests.

About plugin

  • Plugin page: deepi
  • Plugin version: 1.10.17
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0.2
  • WordPress version: 6.3.1
  • First release: Aug 31, 2022
  • Latest release: Jan 7, 2023
  • Number of updates: 5
  • Update frequency: every 26.2 days
  • Top authors: deepindexer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /199 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.20MB] [CPU: ▲381.78ms] 50% from 4 tests

A check of server-side resources used by Deepi
Please have a look at the following items
  • CPU: Try to keep total CPU usage under 500.00ms (currently 2,987.40ms on /wp-admin/admin.php?page=deepi_settings)
  • Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 381.78ms on /wp-admin/admin.php?page=deepi_settings)
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.111,552.63 ▲1,508.43
Dashboard /wp-admin3.43 ▲0.1355.01 ▲5.21
Posts /wp-admin/edit.php3.55 ▲0.1963.25 ▲8.55
Add New Post /wp-admin/post-new.php4.73 ▼1.162,430.72 ▲2,321.96
Media Library /wp-admin/upload.php3.35 ▲0.1343.11 ▲4.92
Deepi /wp-admin/admin.php?page=Deepi3.3234.22
Settings /wp-admin/admin.php?page=deepi_settings3.352,987.40

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 32 new files
Database: 1 new table, 6 new options
New tables
wp_deepi
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Deepi
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲16613.60 ▼0.7611.72 ▲9.8939.22 ▼7.14
Dashboard /wp-admin2,219 ▲455.54 ▼0.0281.89 ▼10.2838.83 ▼1.42
Posts /wp-admin/edit.php2,127 ▲221.98 ▲0.0036.71 ▼5.8635.26 ▼0.43
Add New Post /wp-admin/post-new.php1,548 ▲2223.11 ▼0.08694.28 ▲13.5162.58 ▲5.46
Media Library /wp-admin/upload.php1,430 ▲304.20 ▲0.02103.07 ▲8.0640.54 ▼3.14
Deepi /wp-admin/admin.php?page=Deepi9941.9927.7634.88
Settings /wp-admin/admin.php?page=deepi_settings9472.0124.4128.71

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/deepi/searchbox.php:61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/deepi/back/menu.php:55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function deepi_all_to_index() in wp-content/plugins/deepi/back/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/deepi/functions.php:326
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/deepi/script.php:4

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: ai, conceptual, search

deepi/deepi.php Passed 13 tests

The main PHP script in "Deepi" version 1.10.17 is automatically included on every request by WordPress
137 characters long description:
Upgrade your site's "lexical search" to Deepi's "Conceptual Search", Take advantage of the latest "artificial intelligence" technologies.

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
Everything looks great! No dangerous files found in this plugin1,448 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP1016382828
PO File18280277
Markdown4860151
CSS481387
SVG10086
JavaScript52319

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions34
▷ Named functions3397.06%
▷ Anonymous functions12.94%
Constants2
▷ Global constants2100.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
3 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
resources/img/logo.png4.64KB2.76KB▼ 40.41%
resources/img/project.png83.77KB27.99KB▼ 66.59%
resources/img/keys.png70.51KB24.53KB▼ 65.21%