100% testimonial-blocks

Code Review | Testimonial Blocks

WordPress plugin Testimonial Blocks scored 100% from 54 tests.

About plugin

  • Plugin page: testimonial-blocks
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Dec 16, 2019
  • Latest release: Feb 11, 2020
  • Number of updates: 5
  • Update frequency: every 12.2 days
  • Top authors: msicknick (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 501 total downloads

Benchmarks

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼139.66ms] Passed 4 tests

Server-side resources used by Testimonial Blocks
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1338.66 ▲14.21
Dashboard /wp-admin3.07 ▲0.0151.58 ▲3.75
Posts /wp-admin/edit.php3.12 ▲0.0149.61 ▼0.32
Add New Post /wp-admin/post-new.php5.42 ▼0.0195.66 ▼568.19
Media Library /wp-admin/upload.php3.01 ▲0.0137.51 ▲6.11

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Testimonial Blocks
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,705 ▲10915.84 ▲0.369.63 ▲1.3249.31 ▼0.82
Dashboard /wp-admin2,970 ▲365.87 ▼0.08141.45 ▼19.03116.93 ▼4.48
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0266.41 ▼2.8791.01 ▼6.19
Add New Post /wp-admin/post-new.php1,508 ▲817.17 ▼1.54364.05 ▼16.35128.13 ▲14.95
Media Library /wp-admin/upload.php1,807 ▼35.01 ▼0.01154.83 ▼4.44118.12 ▼7.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
There were not plugin tags detected

testimonial-blocks/index.php 92% from 13 tests

The main PHP file in "Testimonial Blocks" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("testimonial-blocks.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin27 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1111624
CSS2002
JavaScript1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin