78% best-testimonial

Code Review | Best Testimonial

WordPress plugin Best Testimonial scored 78% from 53 tests.

About plugin

  • Plugin page: best-testimonial
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.0
  • WordPress version: 5.8.1
  • First release: Dec 12, 2018
  • Latest release: Dec 14, 2018
  • Number of updates: 9
  • Update frequency: every 0.2 days
  • Top authors: digitalcenturysf (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 456 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.34MB] [CPU: ▼259.20ms] Passed 4 tests

A check of server-side resources used by Best Testimonial
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.10 ▲0.3834.05 ▲13.90
Dashboard /wp-admin3.44 ▲0.3946.66 ▲2.74
Posts /wp-admin/edit.php3.49 ▲0.3944.20 ▲4.16
Add New Post /wp-admin/post-new.php5.72 ▲0.2991.63 ▼1,036.97
Media Library /wp-admin/upload.php3.30 ▲0.2933.95 ▼6.71
All Testimonials /wp-admin/edit.php?post_type=best_testimonial3.4440.47
Settings /wp-admin/edit.php?post_type=best_testimonial&page=best_testimonial_settings3.3034.91
Categories /wp-admin/edit-tags.php?taxonomy=best_testimonial_cats&post_type=best_testimonial3.3339.05
About /wp-admin/edit.php?post_type=best_testimonial&page=best_testimonial_settings_info3.3033.70
Add Testimonial /wp-admin/post-new.php?post_type=best_testimonial3.4849.77

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 2 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Best Testimonial
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,074 ▲49218.53 ▲2.8713.64 ▲6.7580.65 ▲35.29
Dashboard /wp-admin3,221 ▲3688.30 ▲2.41168.92 ▲38.23107.52 ▲8.54
Posts /wp-admin/edit.php2,998 ▲2924.37 ▲1.6881.90 ▲9.6996.61 ▲12.28
Add New Post /wp-admin/post-new.php1,904 ▲31618.92 ▼2.51348.34 ▲80.48105.06 ▼4.99
Media Library /wp-admin/upload.php1,854 ▲794.88 ▼0.12117.00 ▼20.12106.84 ▼7.82
All Testimonials /wp-admin/edit.php?post_type=best_testimonial1,6954.2882.5255.43
Settings /wp-admin/edit.php?post_type=best_testimonial&page=best_testimonial_settings3,0845.32128.8379.65
Categories /wp-admin/edit-tags.php?taxonomy=best_testimonial_cats&post_type=best_testimonial2,0094.3781.9869.81
About /wp-admin/edit.php?post_type=best_testimonial&page=best_testimonial_settings_info1,4524.0384.0383.02
Add Testimonial /wp-admin/post-new.php?post_type=best_testimonial3,2239.24220.74124.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 2 options
    • bestt_style_one
    • bestt_style_two

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/best-testimonial/public/partials/best-testimonial-public-display.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/best-testimonial/admin/partials/best-testimonial-admin-display-info.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/best-testimonial/admin/partials/best-testimonial-admin-display.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: testimonial slider, reviews, best testimonial, testimonials

best-testimonial/best-testimonial.php Passed 13 tests

The main PHP script in "Best Testimonial" version 1.0.2 is automatically included on every request by WordPress
96 characters long description:
Very simple and powerful testimonial system for wordpress website. Customizable & user friendly.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin8,586 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity13.11
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
▷ Static methods22.67%
▷ Public methods7093.33%
▷ Protected methods00.00%
▷ Private methods56.67%
▷ Named functions375.00%
▷ Anonymous functions125.00%
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/bg.png152.80KB64.26KB▼ 57.94%
public/img/testimonial-bg.png3.87KB1.20KB▼ 69.05%