10% indianic-testimonial

Code Review | Testimonial

WordPress plugin Testimonial scored10%from 54 tests.

About plugin

  • Plugin page: indianic-testimonial
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.1
  • WordPress version: 6.3.1
  • First release: Jun 26, 2012
  • Latest release: Oct 4, 2013
  • Number of updates: 35
  • Update frequency: every 15.1 days
  • Top authors: laki_patel (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

60+ active /12,307 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/indianic-testimonial/testimonial.php+576
    Function create_function() is deprecated

Server metrics [RAM: ▼1.66MB] [CPU: ▼53.75ms] Passed 4 tests

Analyzing server-side resources used by Testimonial
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.33 ▼1.135.69 ▼34.34
Dashboard /wp-admin2.35 ▼0.957.41 ▼43.68
Posts /wp-admin/edit.php2.35 ▼1.017.00 ▼45.50
Add New Post /wp-admin/post-new.php2.35 ▼3.547.45 ▼91.46
Media Library /wp-admin/upload.php2.35 ▼0.887.64 ▼28.23
Listing Template /wp-admin/admin.php?page=inic_testimonial_listing_template2.356.47
All Testimonial /wp-admin/admin.php?page=inic_testimonial_view2.357.84
Widget Template /wp-admin/admin.php?page=inic_testimonial_widget_template2.355.49
Add Testimonial /wp-admin/admin.php?page=inic_testimonial_add2.358.44
Settings /wp-admin/admin.php?page=inic_testimonial_settings2.355.78

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: 3 new tables, 11 new options
New tables
wp_inic_testimonial_template
wp_inic_testimonial
wp_inic_testimonial_widget
New WordPress options
db_upgraded
inic_testimonial_list_ord_by
widget_inic_testimonial_widget
widget_recent-comments
can_compress_scripts
inic_testimonial_html_template
jal_db_version
widget_theysaidso_widget
inic_testimonial_admin_list_per_page
theysaidso_admin_options
...

Browser metrics Passed 4 tests

An overview of browser requirements for Testimonial
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.28 ▼0.141.91 ▲0.3245.76 ▲0.29
Dashboard /wp-admin2,218 ▲385.59 ▼0.0984.66 ▼2.0576.55 ▲32.89
Posts /wp-admin/edit.php2,138 ▲381.98 ▲0.0034.93 ▼5.6236.19 ▼2.44
Add New Post /wp-admin/post-new.php1,576 ▲4822.98 ▼0.20759.87 ▲73.5961.21 ▲2.14
Media Library /wp-admin/upload.php1,441 ▲414.23 ▲0.03108.29 ▲7.1274.10 ▲27.67
Listing Template /wp-admin/admin.php?page=inic_testimonial_listing_template8741.8026.0228.20
All Testimonial /wp-admin/admin.php?page=inic_testimonial_view7601.126.6821.29
Widget Template /wp-admin/admin.php?page=inic_testimonial_widget_template8501.6526.9127.83
Add Testimonial /wp-admin/admin.php?page=inic_testimonial_add2,2112.3435.4840.88
Settings /wp-admin/admin.php?page=inic_testimonial_settings1,2591.9731.1834.48

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/indianic-testimonial/testimonial.php+576
    Function create_function() is deprecated
  • Zombie tables were found after uninstall: 3 tables
    • wp_inic_testimonial_widget
    • wp_inic_testimonial
    • wp_inic_testimonial_template
  • This plugin does not fully uninstall, leaving 11 options in the database
    • can_compress_scripts
    • widget_inic_testimonial_widget
    • widget_recent-comments
    • db_upgraded
    • inic_testimonial_html_template
    • widget_recent-posts
    • jal_db_version
    • theysaidso_admin_options
    • inic_testimonial_list_ord_by
    • widget_theysaidso_widget
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=inic_testimonial_settings
    • > Deprecated in wp-content/plugins/indianic-testimonial/testimonial.php+576
    Function create_function() is deprecated
    • > GET request to /wp-admin/admin.php?page=inic_testimonial_add
    • > Notice in wp-content/plugins/indianic-testimonial/add.php+40
    Undefined variable: project_name
    • > GET request to /wp-admin/admin.php?page=inic_testimonial_add
    • > Notice in wp-content/plugins/indianic-testimonial/add.php+45
    Undefined variable: project_url
    • > GET request to /wp-admin/admin.php?page=inic_testimonial_add
    • > Notice in wp-content/plugins/indianic-testimonial/add.php+50
    Undefined variable: client_name
    • > GET request to /wp-admin/admin.php?page=inic_testimonial_add
    • > Notice in wp-content/plugins/indianic-testimonial/add.php+58
    Undefined variable: city
    • > GET request to /wp-admin/admin.php?page=inic_testimonial_add
    • > Notice in wp-content/plugins/indianic-testimonial/add.php+63
    Undefined variable: state
  • 239 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=inic_testimonial_add
    • > Notice in wp-content/plugins/indianic-testimonial/add.php+73
    Undefined variable: country
    • > GET request to /wp-admin/admin.php?page=inic_testimonial_add
    • > Notice in wp-content/plugins/indianic-testimonial/add.php+87
    Undefined variable: description
    • > GET request to /wp-admin/admin.php?page=inic_testimonial_add
    • > Notice in wp-content/plugins/indianic-testimonial/add.php+92
    Undefined variable: tags
    • > GET request to /wp-admin/admin.php?page=inic_testimonial_add
    • > Notice in wp-content/plugins/indianic-testimonial/add.php+97
    Undefined variable: video_url
    • > GET request to /wp-admin/admin.php?page=inic_testimonial_add
    • > Notice in wp-content/plugins/indianic-testimonial/add.php+102
    Undefined variable: thumb_img_url
    • > GET request to /wp-admin/admin.php?page=inic_testimonial_add
    • > Notice in wp-content/plugins/indianic-testimonial/add.php+107
    Undefined variable: large_img_url
    • > GET request to /wp-admin/admin.php?page=inic_testimonial_add
    • > Notice in wp-content/plugins/indianic-testimonial/add.php+112
    Undefined variable: is_featured

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/indianic-testimonial/listing_data_table.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/indianic-testimonial/add.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/indianic-testimonial/widget_template.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/indianic-testimonial/widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/indianic-testimonial/settings.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/indianic-testimonial/listing_template.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/indianic-testimonial/testimonial.php:489
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/indianic-testimonial/view.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=inic_testimonial_listing_template
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=inic_testimonial_listing_template 239:31 Uncaught ReferenceError: QTags is not defined
    • > GET request to /wp-admin/admin.php?page=inic_testimonial_widget_template
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=inic_testimonial_widget_template 238:31 Uncaught ReferenceError: QTags is not defined
    • > GET request to /wp-admin/admin.php?page=inic_testimonial_add
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDivElement.\u003Canonymous> (/wp-admin/admin.php?page=inic_testimonial_add:79:56)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:1594)\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=inic_testimonial_add:46:40)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=inic_testimonial_add
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #3 (screenshot-3.png), #4 (screenshot-4.png), #5 (screenshot-5.png), #6 (screenshot-6.png), #7 (screenshot-7.png)
You can take inspiration from this readme.txt

indianic-testimonial/testimonial.php 92% from 13 tests

The entry point to "Testimonial" version 2.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("indianic-testimonial.php" instead of "testimonial.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,861 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP84433351,861

PHP code Passed 2 tests

An overview 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.39
Average class complexity52.50
▷ Minimum class complexity23.00
▷ Maximum class complexity83.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods73
▷ Static methods00.00%
▷ Public methods73100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions975.00%
▷ Anonymous functions325.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.34MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-6.png18.59KB8.00KB▼ 56.97%
icon.png1.45KB0.73KB▼ 49.60%
screenshot-3.png86.74KB34.89KB▼ 59.77%
screenshot-1.png47.13KB18.31KB▼ 61.16%
screenshot-4.png33.49KB13.58KB▼ 59.47%