79% clean-testimonials

Code Review | Clean Testimonials

WordPress plugin Clean Testimonials scored79%from 54 tests.

About plugin

  • Plugin page: clean-testimonials
  • Plugin version: 1.5.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-3.8.1
  • WordPress version: 6.3.1
  • First release: Aug 26, 2013
  • Latest release: Jun 14, 2014
  • Number of updates: 68
  • Update frequency: every 4.3 days
  • Top authors: hello@lukerollans.me (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

800+ active /30,479 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.50MB] [CPU: ▼14.43ms] Passed 4 tests

An overview of server-side resources used by Clean Testimonials
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1942.34 ▲1.16
Dashboard /wp-admin3.48 ▲0.1849.92 ▼3.64
Posts /wp-admin/edit.php3.60 ▲0.2450.47 ▲0.20
Add New Post /wp-admin/post-new.php3.33 ▼2.5540.38 ▼55.45
Media Library /wp-admin/upload.php3.41 ▲0.1839.77 ▲5.32
Testimonials /wp-admin/edit.php?post_type=testimonial3.4539.03
Add New /wp-admin/post-new.php?post_type=testimonial3.3335.65
Categories /wp-admin/edit-tags.php?taxonomy=testimonial_category&post_type=testimonial3.4038.64

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options
widget_testimonials_widget
theysaidso_admin_options
ct_activated
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Clean Testimonials
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲19414.00 ▼0.375.06 ▲3.2141.10 ▼14.70
Dashboard /wp-admin2,239 ▲544.89 ▲0.01103.00 ▼0.9039.06 ▼2.12
Posts /wp-admin/edit.php2,122 ▲332.06 ▲0.0641.01 ▲2.9636.07 ▲1.40
Add New Post /wp-admin/post-new.php1,565 ▲2318.08 ▼0.26641.93 ▲1.2558.48 ▲4.04
Media Library /wp-admin/upload.php1,421 ▲364.15 ▼0.08111.94 ▲8.9547.77 ▲4.60
Testimonials /wp-admin/edit.php?post_type=testimonial1,1631.9730.9630.66
Add New /wp-admin/post-new.php?post_type=testimonial2,3877.74168.2263.66
Categories /wp-admin/edit-tags.php?taxonomy=testimonial_category&post_type=testimonial1,2782.2827.7426.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • ct_activated
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_testimonials_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=testimonial
    • > Notice in wp-content/plugins/clean-testimonials/class.clean-testimonials.php+335
    Trying to get property 'post_type' of non-object

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/clean-testimonials/lib/templates/email-new-testimonial.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/clean-testimonials/lib/shortcodes.php:60
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/clean-testimonials/class.testimonials-widget.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
10 plugin tags: review, recommend, reference, testimonial, recommendation...

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

The main PHP script in "Clean Testimonials" version 1.5.2.1 is automatically included on every request by WordPress
75 characters long description:
Allows you to easily and quickly add Testimonials to your WordPress website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,035 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8424176842
PO File15866143
JavaScript335750

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity13.00
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes375.00%
Methods22
▷ Static methods1463.64%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin