10% row-column-testmonial-with-widget

Code Review | Row Column Testimonials with widget

WordPress plugin Row Column Testimonials with widget scored10%from 54 tests.

About plugin

  • Plugin page: row-column-testmo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.5.2
  • WordPress version: 6.3.1
  • First release: Aug 6, 2016
  • Latest release: Aug 6, 2016
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: bijon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,384 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/row-column-testmonial-with-widget/templates/row-column-widget-testimonials.php+376
    Function create_function() is deprecated

Server metrics [RAM: ▼1.69MB] [CPU: ▼53.60ms] Passed 4 tests

Server-side resources used by Row Column Testimonials with widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.30 ▼1.165.76 ▼34.17
Dashboard /wp-admin2.32 ▼1.027.74 ▼50.60
Posts /wp-admin/edit.php2.32 ▼1.037.98 ▼40.30
Add New Post /wp-admin/post-new.php2.32 ▼3.567.57 ▼89.31
Media Library /wp-admin/upload.php2.32 ▼0.907.15 ▼28.67
All Testimonials /wp-admin/edit.php?post_type=testimonial2.337.40
Category /wp-admin/edit-tags.php?taxonomy=testimonial-category&post_type=testimonial2.336.53
Add New /wp-admin/post-new.php?post_type=testimonial2.327.78

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_rct_testimonials
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Row Column Testimonials with widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,950 ▲20413.64 ▼0.946.11 ▲4.2837.23 ▼5.02
Dashboard /wp-admin2,237 ▲495.86 ▼0.04107.12 ▼1.8942.72 ▼0.00
Posts /wp-admin/edit.php2,120 ▲312.02 ▲0.0039.56 ▼2.1835.27 ▼1.56
Add New Post /wp-admin/post-new.php1,568 ▲4918.36 ▼5.03614.41 ▼77.5749.35 ▼5.02
Media Library /wp-admin/upload.php1,422 ▲404.22 ▲0.0296.78 ▼6.6643.85 ▼1.29
All Testimonials /wp-admin/edit.php?post_type=testimonial1,0921.9330.2333.25
Category /wp-admin/edit-tags.php?taxonomy=testimonial-category&post_type=testimonial1,2702.1426.8329.02
Add New /wp-admin/post-new.php?post_type=testimonial2,4717.75178.3266.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 gracefully
    • > Deprecated in wp-content/plugins/row-column-testmonial-with-widget/templates/row-column-widget-testimonials.php+376
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_rct_testimonials
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

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
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=testimonial
    • > Deprecated in wp-content/plugins/row-column-testmonial-with-widget/templates/row-column-widget-testimonials.php+376
    Function create_function() is deprecated

SRP 0% 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
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/row-column-testmonial-with-widget/templates/designs/design-3.php
    • > /wp-content/plugins/row-column-testmonial-with-widget/templates/designs/design-2.php
    • > /wp-content/plugins/row-column-testmonial-with-widget/templates/designs/design-4.php
    • > /wp-content/plugins/row-column-testmonial-with-widget/templates/designs/design-1.php
  • 90× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/row-column-testmonial-with-widget/templates/designs/design-3.php on line 23
    • > PHP Notice
      Undefined variable: css_class in wp-content/plugins/row-column-testmonial-with-widget/templates/designs/design-2.php on line 1
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/row-column-testmonial-with-widget/templates/designs/design-2.php on line 18
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/row-column-testmonial-with-widget/templates/designs/design-2.php on line 30
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/row-column-testmonial-with-widget/templates/designs/design-1.php on line 1
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/row-column-testmonial-with-widget/templates/designs/design-2.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/row-column-testmonial-with-widget/row-column-testimonial-with-widget.php:28
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/row-column-testmonial-with-widget/templates/designs/design-1.php on line 9
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/row-column-testmonial-with-widget/templates/designs/design-4.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/row-column-testmonial-with-widget/templates/designs/design-1.php on line 18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 83% 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
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Simple list view), #2 (Grid view), #3 (Slider (per row one)), #4 (Slider (per row two)), #5 (all Testimonials), #6 (Creating testimonials (admin view)), #7 (Widget Setting)
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
The official readme.txt is a good inspiration

row-column-testmonial-with-widget/row-column-testimonial-with-widget.php 77% from 13 tests

Analyzing the main PHP file in "Row Column Testimonials with widget" version 1.0
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("row-column-testmonial-with-widget.php" instead of "row-column-testimonial-with-widget.php")
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,279 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP9140541,031
CSS2856246
JavaScript12142

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity75.00
▷ Minimum class complexity75.00
▷ Maximum class complexity75.00
Average method complexity9.22
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
7 PNG files occupy 0.17MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot/screenshot04.png36.71KB18.20KB▼ 50.43%
screenshot/screenshot05.png39.80KB18.73KB▼ 52.93%
assets/css/arrow-left.png1.15KB0.17KB▼ 85.11%
screenshot/screenshot02.png35.17KB11.51KB▼ 67.26%
assets/css/arrow-right.png1.15KB0.18KB▼ 84.62%