58% whook-testimonial

Code Review | Whook Testimonials

WordPress plugin Whook Testimonials scored58%from 54 tests.

About plugin

  • Plugin page: whook-testimonial
  • Plugin version: 1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.5
  • WordPress version: 6.3.1
  • First release: Aug 23, 2018
  • Latest release: Sep 3, 2018
  • Number of updates: 12
  • Update frequency: every 1.0 days
  • Top authors: darteweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /622 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.98ms] Passed 4 tests

This is a short check of server-side resources used by Whook Testimonials
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.25 ▲2.97
Dashboard /wp-admin3.34 ▲0.0351.40 ▼4.37
Posts /wp-admin/edit.php3.39 ▲0.0352.87 ▲1.47
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.12 ▼14.29
Media Library /wp-admin/upload.php3.26 ▲0.0338.66 ▲1.26
Whook Testimonials /wp-admin/admin.php?page=whook-testimonial-table3.3937.14
Global Settings /wp-admin/admin.php?page=whook-setting3.5136.63
Questions /wp-admin/admin.php?page=whook-question-table3.2332.53

Server storage [IO: ▲2.78MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 93 new files
Database: 3 new tables, 6 new options
New tables
wp_dweb_setting
wp_dweb_question
wp_dweb_message
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Whook Testimonials
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲12713.56 ▼0.815.29 ▲3.4242.92 ▲1.97
Dashboard /wp-admin2,250 ▲705.20 ▼0.4599.60 ▲6.6941.29 ▼3.18
Posts /wp-admin/edit.php2,155 ▲552.58 ▲0.5542.78 ▲2.3338.34 ▲4.73
Add New Post /wp-admin/post-new.php1,728 ▲18323.20 ▲0.07689.62 ▲18.4337.99 ▼19.58
Media Library /wp-admin/upload.php1,455 ▲554.76 ▲0.57104.81 ▼12.8747.15 ▼0.52
Whook Testimonials /wp-admin/admin.php?page=whook-testimonial-table1,2632.5850.9448.52
Global Settings /wp-admin/admin.php?page=whook-setting1,5032.1731.7236.46
Questions /wp-admin/admin.php?page=whook-question-table1,2102.4648.2837.04

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 3 tables in the database
    • wp_dweb_setting
    • wp_dweb_message
    • wp_dweb_question
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/whook-testimonial/whook-testimonial.php:45

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=whook-question-table
    • > Network (severe)
    wp-content/plugins/whook-testimonial/images/sort_both.png - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=whook-question-table
    • > Network (severe)
    wp-content/plugins/whook-testimonial/images/sort_desc.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Front-end View - Feedback form Layout[1-Coloumn]) image missing
You can take inspiration from this readme.txt

whook-testimonial/whook-testimonial.php Passed 13 tests

The primary PHP file in "Whook Testimonials" version 1.2 is used by WordPress to initiate all plugin functionality
69 characters long description:
This is testimonial plugin which is helpful for get visitor feedback.

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
These items require your attention
  • For security reasons, never distribute binary or executable files with your plugin
    • .lnk - File Shortcut in Windows
      • wp-content/plugins/whook-testimonial/images/images - Shortcut.lnk
28,497 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
CSS177,18523516,524
JavaScript137542762,474
Sass393212,386
LESS392962,384
Stylus31,17331,903
PHP71,0732901,887
SVG503919
HTML231120

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity39.50
▷ Minimum class complexity4.00
▷ Maximum class complexity111.00
Average method complexity7.08
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods39
▷ Static methods1333.33%
▷ Public methods39100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions30
▷ Named functions2480.00%
▷ Anonymous functions620.00%
Constants4
▷ Global constants4100.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
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/star1.png3.52KB1.34KB▼ 62.04%
images/user.png0.23KB0.42KB0.00%
images/star2.png1.77KB1.35KB▼ 23.67%
images/settings.png1.03KB0.16KB▼ 84.11%
images/email.png0.20KB0.32KB0.00%