84% wp-testimonial

Code Review | WP Testimonial

WordPress plugin WP Testimonial scored 84% from 54 tests.

About plugin

  • Plugin page: wp-testimonial
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Jan 28, 2015
  • Latest release: Jul 4, 2022
  • Number of updates: 24
  • Update frequency: every 113.1 days
  • Top authors: india-web-developer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 2,643 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼2.51ms] Passed 4 tests

A check of server-side resources used by WP Testimonial
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1440.15 ▼4.75
Dashboard /wp-admin3.43 ▲0.1348.24 ▼4.24
Posts /wp-admin/edit.php3.54 ▲0.1951.37 ▲1.91
Add New Post /wp-admin/post-new.php6.01 ▲0.1398.91 ▼1.89
Media Library /wp-admin/upload.php3.35 ▲0.1239.03 ▲0.85
Settings /wp-admin/edit.php?post_type=wpt_testimonial&page=wpt-testimonials-plugin3.3235.07
WP Testimonials /wp-admin/edit.php?post_type=wpt_testimonial3.3938.90
Add New /wp-admin/post-new.php?post_type=wpt_testimonial3.4752.09

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_wp_testimonial_widget

Browser metrics Passed 4 tests

WP Testimonial: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,948 ▲21314.06 ▼0.615.52 ▲3.5838.99 ▼6.62
Dashboard /wp-admin2,241 ▲534.88 ▼0.04109.02 ▲9.1238.69 ▼6.41
Posts /wp-admin/edit.php2,125 ▲362.04 ▲0.0340.34 ▲5.4633.43 ▲0.13
Add New Post /wp-admin/post-new.php1,564 ▲3123.32 ▼0.05633.75 ▼48.8853.83 ▼6.09
Media Library /wp-admin/upload.php1,427 ▲364.25 ▲0.1099.45 ▼9.8340.72 ▼5.39
Settings /wp-admin/edit.php?post_type=wpt_testimonial&page=wpt-testimonials-plugin1,1691.7325.7036.01
WP Testimonials /wp-admin/edit.php?post_type=wpt_testimonial1,0981.9430.5128.71
Add New /wp-admin/post-new.php?post_type=wpt_testimonial2,3637.82165.1074.41

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_wp_testimonial_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-testimonial/lib/wpt-testimonial-wdget.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-testimonial/wp-testimonial.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-testimonial/lib/class-wpt-testimonial.php:10

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 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: testimonial slider, simple testimonials, testimonials widget, responsive testimonial rotator, testimonial...

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

"WP Testimonial" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,638 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11131221,096
PHP4124143470
CSS21972

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/block.png17.35KB11.25KB▼ 35.14%
images/laquo.png1.13KB0.29KB▼ 74.65%
images/raquo.png1.11KB0.28KB▼ 74.50%