84% delighted-integration

Code Review | Delighted Survey Plugin

WordPress plugin Delighted Survey Plugin scored84%from 54 tests.

About plugin

  • Plugin page: delighted-integra...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 13, 2022
  • Latest release: Oct 7, 2022
  • Number of updates: 11
  • Update frequency: every 2.5 days
  • Top authors: seandelighted (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /165 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼12.78ms] Passed 4 tests

Server-side resources used by Delighted Survey Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.41 ▼6.71
Dashboard /wp-admin3.31 ▼0.0340.36 ▼15.99
Posts /wp-admin/edit.php3.37 ▲0.0151.64 ▲4.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.07 ▼28.61
Media Library /wp-admin/upload.php3.24 ▲0.0136.06 ▲0.18

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 6 new options
New tables
wp_survey_customer
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Delighted Survey Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.39 ▼0.841.63 ▼0.2335.96 ▼11.34
Dashboard /wp-admin2,206 ▲184.86 ▲0.00111.34 ▲7.0543.97 ▲3.30
Posts /wp-admin/edit.php2,086 ▼31.97 ▼0.0739.53 ▲5.6734.93 ▲1.38
Add New Post /wp-admin/post-new.php1,514 ▼1517.80 ▼0.57662.92 ▲53.6552.02 ▼2.65
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.0394.25 ▼5.2342.24 ▼2.48

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/delighted-integration/index.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: You can look at the official readme.txt

delighted-integration/index.php 92% from 13 tests

The principal PHP file in "Delighted Survey Plugin" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("delighted-integration.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin412 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14612412

PHP code Passed 2 tests

A short review 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.55
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.19MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/screenshot-1.png67.34KB32.17KB▼ 52.24%
assets/icon-1133x1133.png39.35KB17.64KB▼ 55.18%
assets/banner-1133x1133.png39.35KB17.64KB▼ 55.18%
assets/images/screenshot-2.png47.80KB22.62KB▼ 52.68%