94% canto-testimonials

Code Review | Canto Testimonials

WordPress plugin Canto Testimonials scored 94% from 54 tests.

About plugin

  • Plugin page: canto-testimonials
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.7
  • WordPress version: 5.8.1
  • First release: Nov 5, 2013
  • Latest release: Oct 17, 2019
  • Number of updates: 16
  • Update frequency: every 135.8 days
  • Top authors: CantoThemes (93.75%)kitthemes (12.5%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,526 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼186.55ms] Passed 4 tests

A check of server-side resources used by Canto Testimonials
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.0731.89 ▲3.90
Dashboard /wp-admin3.12 ▲0.0636.87 ▼5.18
Posts /wp-admin/edit.php3.18 ▲0.0738.08 ▼1.23
Add New Post /wp-admin/post-new.php5.49 ▲0.0573.91 ▼739.22
Media Library /wp-admin/upload.php3.07 ▲0.0724.63 ▼0.56
Testimonials /wp-admin/edit.php?post_type=testimonials3.1126.73
Add New /wp-admin/post-new.php?post_type=testimonials3.1134.68

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Canto Testimonials
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,705 ▲10416.07 ▲0.475.71 ▲0.8686.44 ▲8.68
Dashboard /wp-admin2,968 ▲726.12 ▼0.04116.45 ▼14.65169.11 ▲0.58
Posts /wp-admin/edit.php2,776 ▲363.24 ▲0.0164.61 ▼0.66136.98 ▼1.75
Add New Post /wp-admin/post-new.php3,838 ▲10218.90 ▲0.48423.39 ▼25.41157.59 ▼9.95
Media Library /wp-admin/upload.php1,785 ▲365.47 ▼0.07139.80 ▲5.48184.69 ▼1.02
Testimonials /wp-admin/edit.php?post_type=testimonials1,4463.0960.86111.55
Add New /wp-admin/post-new.php?post_type=testimonials2,1153.96108.08130.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/canto-testimonials/canto-testimonials.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

canto-testimonials/canto-testimonials.php 92% from 13 tests

The primary PHP file in "Canto Testimonials" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,737 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity6.00
▷ Minimum class complexity2.00
▷ Maximum class complexity13.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods872.73%
▷ Protected methods00.00%
▷ Private methods327.27%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
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/controls.png2.74KB1.42KB▼ 48.29%