99% testimonial-block

Code Review | Testimonial Gutenberg Block

WordPress plugin Testimonial Gutenberg Block scored 99% from 54 tests.

About plugin

  • Plugin page: testimonial-block
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2
  • WordPress version: 5.9.2
  • First release: Sep 28, 2019
  • Latest release: Sep 30, 2019
  • Number of updates: 11
  • Update frequency: every 0.2 days
  • Top authors: jmsthemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active / 1,845 total downloads


Plugin footprint Passed 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.16MB] [CPU: ▼302.00ms] Passed 4 tests

Server-side resources used by Testimonial Gutenberg Block
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.1658.48 ▲7.39
Dashboard /wp-admin3.51 ▲0.1041.75 ▲8.89
Posts /wp-admin/edit.php3.74 ▲0.0940.77 ▼2.11
Add New Post /wp-admin/post-new.php6.05 ▼0.9260.61 ▼1,214.47
Media Library /wp-admin/upload.php3.39 ▲0.0926.11 ▲1.21

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Testimonial Gutenberg Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲2715.91 ▲0.306.09 ▲0.112.60 ▲0.15
Dashboard /wp-admin2,881 ▲206.12 ▼0.14120.17 ▼14.53159.77 ▼1.14
Posts /wp-admin/edit.php2,694 ▲103.24 ▲0.0062.06 ▼0.94134.73 ▼10.22
Add New Post /wp-admin/post-new.php1,701 ▼1821.93 ▼0.17461.00 ▲45.53154.06 ▼6.87
Media Library /wp-admin/upload.php1,698 ▼05.48 ▼0.07144.59 ▼2.34189.43 ▲0.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7 in testimonial-block/assets to your readme.txt
The official readme.txt might help

testimonial-block/jms-testimonialblock.php 85% from 13 tests

The main PHP file in "Testimonial Gutenberg Block" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("testimonial-block.php" instead of "jms-testimonialblock.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,630 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity9.29
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
▷ Static methods515.15%
▷ Public methods3090.91%
▷ Protected methods26.06%
▷ Private methods13.03%
▷ Named functions360.00%
▷ Anonymous functions240.00%
▷ Global constants7100.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
assets/img/owl.video.play.png4.86KB2.74KB▼ 43.61%