68% klantenvertellen

Code Review | Klantenvertellen

WordPress plugin Klantenvertellen scored68%from 54 tests.

About plugin

  • Plugin page: klantenvertellen
  • Plugin version: 1.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6
  • WordPress version: 6.3.1
  • First release: Oct 4, 2019
  • Latest release: Jan 11, 2021
  • Number of updates: 13
  • Update frequency: every 35.9 days
  • Top authors: klantenvertellenplugin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,992 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 gracefully, with no errors

Server metrics [RAM: ▲0.24MB] [CPU: ▼4.12ms] Passed 4 tests

Analyzing server-side resources used by Klantenvertellen
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2049.00 ▲8.30
Dashboard /wp-admin3.62 ▲0.3154.40 ▲5.21
Posts /wp-admin/edit.php3.67 ▲0.3153.07 ▲0.64
Add New Post /wp-admin/post-new.php6.13 ▲0.2486.92 ▼24.24
Media Library /wp-admin/upload.php3.45 ▲0.2239.60 ▲1.91

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 68 new files
Database: 1 new table, 13 new options
New tables
wp_klantenvertellen_review
New WordPress options
widget_recent-comments
klantenvertellen_recommendation
widget_theysaidso_widget
widget_klantenvertellen_page_widget
widget_recent-posts
klantenvertellen_possibilities
widget_klantenvertellen_snippet_widget
klantenvertellen_avarages
klantenvertellen_avarage
theysaidso_admin_options
...

Browser metrics Passed 4 tests

Klantenvertellen: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,048 ▲28715.21 ▲0.864.89 ▲2.2339.13 ▼4.97
Dashboard /wp-admin2,373 ▲1966.35 ▲0.74117.19 ▲15.0041.21 ▼3.17
Posts /wp-admin/edit.php2,301 ▲1983.56 ▲1.6148.41 ▲13.9830.39 ▼3.58
Add New Post /wp-admin/post-new.php1,559 ▲3323.74 ▲0.60671.24 ▼34.1538.52 ▼15.89
Media Library /wp-admin/upload.php1,441 ▲384.26 ▲0.0782.41 ▼18.8243.43 ▼1.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_klantenvertellen_review
  • This plugin does not fully uninstall, leaving 13 options in the database
    • klantenvertellen_avarages
    • widget_klantenvertellen_snippet_widget
    • can_compress_scripts
    • klantenvertellen_reviews
    • widget_recent-comments
    • widget_klantenvertellen_page_widget
    • theysaidso_admin_options
    • klantenvertellen_avarage
    • klantenvertellen_possibilities
    • klantenvertellen_recommendation
    • ...

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/klantenvertellen/public/partials/klantenvertellen-public-display.php
  • 19× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/klantenvertellen/widgets/templates/block/stijl1-dynamic.css.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/klantenvertellen/widgets/templates/page/stijl1-dynamic.css.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/klantenvertellen/widgets/klantenvertellen_block.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/klantenvertellen/admin/css/klantenvertellen-dynamic.css.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/klantenvertellen/widgets/klantenvertellen_snippet.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/klantenvertellen/widgets/templates/snippet/small_dark.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/klantenvertellen/widgets/templates/page/stijl2-configure.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/klantenvertellen/widgets/templates/page/stijl2-dynamic.css.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/klantenvertellen/widgets/templates/page/stijl2.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/klantenvertellen/widgets/templates/snippet/small_light.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 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
3 plugin tags: klantenvertellen, reviews, kiyoh

klantenvertellen/klantenvertellen.php Passed 13 tests

The entry point to "Klantenvertellen" version 1.7 is a PHP file that has certain tags in its header comment area
132 characters long description:
Deze plugin maakt het mogelijk om Widgets/Shortcodes te gebruiken waarmee organisch sterren in de zoekresultaten weergegeven worden.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin6,335 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
CSS17243253,297
PHP306056853,003
JavaScript286435

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity7.10
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods67
▷ Static methods22.99%
▷ Public methods6292.54%
▷ Protected methods00.00%
▷ Private methods57.46%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
9 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
widgets/templates/snippet/images/stars-big-inactive.png1.40KB0.41KB▼ 70.70%
widgets/templates/snippet/images/stars-small.png0.39KB0.34KB▼ 12.00%
widgets/templates/snippet/images/logo-big.png2.16KB1.69KB▼ 21.51%
widgets/templates/snippet/images/stars-big@2.png0.85KB0.74KB▼ 12.81%
widgets/templates/snippet/images/stars-big.png1.37KB0.41KB▼ 69.95%