68% kento-clients-feedback

Code Review | Kento Clients Feedback

WordPress plugin Kento Clients Feedback scored68%from 54 tests.

About plugin

  • Plugin page: kento-clients-fee...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2.2
  • WordPress version: 6.3.1
  • First release: Dec 19, 2013
  • Latest release: Jun 9, 2015
  • Number of updates: 8
  • Update frequency: every 67.2 days
  • Top authors: kentothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,367 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.91MB] [CPU: ▼57.96ms] Passed 4 tests

A check of server-side resources used by Kento Clients Feedback
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.396.02 ▼37.37
Dashboard /wp-admin2.10 ▼1.216.72 ▼50.23
Posts /wp-admin/edit.php2.10 ▼1.267.21 ▼41.54
Add New Post /wp-admin/post-new.php2.10 ▼3.797.08 ▼102.69
Media Library /wp-admin/upload.php2.10 ▼1.135.34 ▼29.83
Kento CF /wp-admin/edit.php?post_type=kento-cf2.105.15
Add New /wp-admin/post-new.php?post_type=kento-cf2.106.30

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Kento Clients Feedback
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲14813.48 ▼0.768.70 ▲6.8140.51 ▼3.60
Dashboard /wp-admin2,210 ▲305.66 ▼0.01100.22 ▲9.3483.76 ▲38.84
Posts /wp-admin/edit.php2,130 ▲302.02 ▲0.0235.21 ▼5.9533.18 ▼1.31
Add New Post /wp-admin/post-new.php1,556 ▲2123.70 ▲5.17624.70 ▼52.7159.73 ▼7.19
Media Library /wp-admin/upload.php1,427 ▲304.25 ▲0.11103.39 ▼0.6584.80 ▲43.06
Kento CF /wp-admin/edit.php?post_type=kento-cf1,0911.9237.5629.46
Add New /wp-admin/post-new.php?post_type=kento-cf2,2357.60178.07144.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=kento-cf
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=kento-cf
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the kento_cf_jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=kento-cf
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the kento_cf_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

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 fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/kento-clients-feedback/index.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/kento-clients-feedback/index.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: Add images for these screenshots: #1 (Kento Clients Feedback 1), #2 (Kento Clients Feedback 2), #3 (Kento Clients Feedback 3), #4 (Kento Clients Feedback Admin)
You can take inspiration from this readme.txt

kento-clients-feedback/index.php 92% from 13 tests

The principal PHP file in "Kento Clients Feedback" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("kento-clients-feedback.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin250 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP11918136
CSS14083
JavaScript28031

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.44MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png106.46KB38.06KB▼ 64.25%
screenshot-4.png117.24KB47.91KB▼ 59.13%
css/quote.png3.15KB0.66KB▼ 78.91%
screenshot-2.png106.44KB38.28KB▼ 64.03%
screenshot-1.png106.13KB38.03KB▼ 64.17%