10% dws-testimonials

Code Review | Easy Testimonials

WordPress plugin Easy Testimonials scored10%from 54 tests.

About plugin

  • Plugin page: dws-testimonials
  • Plugin version: 3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Sep 20, 2012
  • Latest release: Mar 18, 2014
  • Number of updates: 39
  • Update frequency: every 14.0 days
  • Top authors: jigzyy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,144 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure had errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲0.12MB] [CPU: ▼7.05ms] Passed 4 tests

This is a short check of server-side resources used by Easy Testimonials
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1031.51 ▼7.36
Dashboard /wp-admin3.44 ▲0.0948.50 ▼18.14
Posts /wp-admin/edit.php3.54 ▲0.1849.44 ▼0.30
Add New Post /wp-admin/post-new.php6.02 ▲0.1394.18 ▼2.40
Media Library /wp-admin/upload.php3.36 ▲0.1337.47 ▲3.47
Testimonials /wp-admin/edit.php?post_type=testimonials3.3940.32
Add New Testimonial /wp-admin/post-new.php?post_type=testimonials3.4750.92

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Testimonials
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8514.74 ▲0.091.75 ▲0.0942.67 ▼0.41
Dashboard /wp-admin2,235 ▲475.80 ▲0.9297.43 ▼18.0677.42 ▲30.64
Posts /wp-admin/edit.php2,121 ▲321.99 ▼0.0638.88 ▲1.6534.51 ▼3.10
Add New Post /wp-admin/post-new.php1,546 ▲1322.03 ▼1.31636.91 ▲6.5052.52 ▼2.56
Media Library /wp-admin/upload.php1,417 ▲324.23 ▲0.12111.67 ▲11.2850.10 ▲6.79
Testimonials /wp-admin/edit.php?post_type=testimonials1,0791.9835.0229.35
Add New Testimonial /wp-admin/post-new.php?post_type=testimonials2,3217.58166.04122.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/dws-testimonials/dws-testimonials.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function has_post_thumbnail() in wp-content/plugins/dws-testimonials/loop-testimonials.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: testimonial with images, testimonials, customer testimonials, testimonial list, client testimonials...

dws-testimonials/dws-testimonials.php Passed 13 tests

"Easy Testimonials" version 3.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
128 characters long description:
Easily implement Client / Customers Testimonials with images on your Wordpress website / blog with shortcode "[dwstestimonial]".

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected439 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP389158433
CSS1016

PHP code Passed 2 tests

An overview 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.45
Average class complexity47.00
▷ Minimum class complexity47.00
▷ Maximum class complexity47.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions758.33%
▷ Anonymous functions541.67%
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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/testimonial.png1.38KB0.40KB▼ 70.91%