94% best-testimonials

Code Review | Best Testimonials

WordPress plugin Best Testimonials scored 94% from 54 tests.

About plugin

  • Plugin page: best-testimonials
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.3
  • WordPress version: 5.9.2
  • First release: Apr 26, 2017
  • Latest release: Apr 26, 2017
  • Number of updates: 4
  • Update frequency: every 1.8 days
  • Top authors: farvehandleren (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 510 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.89MB] [CPU: ▼304.18ms] Passed 4 tests

Server-side resources used by Best Testimonials
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0559.78 ▲8.33
Dashboard /wp-admin3.46 ▲0.0641.34 ▲1.09
Posts /wp-admin/edit.php3.69 ▲0.0588.45 ▲48.45
Add New Post /wp-admin/post-new.php3.27 ▼3.6930.86 ▼1,226.95
Media Library /wp-admin/upload.php3.34 ▲0.0526.37 ▲0.82
Testimonials /wp-admin/edit.php?post_type=testimonial3.3726.69
Add New Testimonial /wp-admin/post-new.php?post_type=testimonial3.2727.13

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Best Testimonials
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,819 ▲7715.59 ▲0.296.03 ▼1.062.24 ▲0.01
Dashboard /wp-admin2,912 ▲516.15 ▲0.00119.29 ▼19.02163.91 ▼4.44
Posts /wp-admin/edit.php2,725 ▲343.24 ▼0.0067.27 ▲2.54145.06 ▼0.10
Add New Post /wp-admin/post-new.php1,734 ▲4420.67 ▲0.10422.84 ▼30.41167.34 ▼10.86
Media Library /wp-admin/upload.php1,729 ▲285.52 ▲0.05131.65 ▼7.55197.17 ▼36.48
Testimonials /wp-admin/edit.php?post_type=testimonial1,3983.1664.63150.09
Add New Testimonial /wp-admin/post-new.php?post_type=testimonial3,02710.02209.48258.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=testimonial
    • > Warning in wp-includes/class-wp-hook.php+309
    call_user_func_array() expects parameter 1 to be a valid callback, function 'custom_add_save' not found or invalid function name

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration 96% from 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
4 plugin tags: testimonials, post, grid, list

best-testimonials/main.php 92% from 13 tests

The primary PHP file in "Best Testimonials" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("best-testimonials.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected166 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin