90% testimonial-wp-block

Code Review | Testimonial Block

WordPress plugin Testimonial Block scored90%from 54 tests.

About plugin

  • Plugin page: testimonial-wp-block
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Aug 5, 2020
  • Latest release: Mar 30, 2023
  • Number of updates: 11
  • Update frequency: every 88.4 days
  • Top authors: wpdevteam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /9,129 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.16MB] [CPU: ▼4.63ms] Passed 4 tests

Server-side resources used by Testimonial Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1846.61 ▲2.92
Dashboard /wp-admin3.45 ▲0.1549.38 ▼5.67
Posts /wp-admin/edit.php3.57 ▲0.2147.44 ▲0.91
Add New Post /wp-admin/post-new.php6.06 ▲0.1787.42 ▼13.61
Media Library /wp-admin/upload.php3.37 ▲0.1435.70 ▼0.15

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Testimonial Block: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.60 ▼0.985.26 ▲3.4242.74 ▲4.48
Dashboard /wp-admin2,206 ▲155.79 ▲0.7896.36 ▼7.7335.58 ▼8.55
Posts /wp-admin/edit.php2,092 ▲32.02 ▼0.0335.86 ▼1.5533.12 ▼0.84
Add New Post /wp-admin/post-new.php1,648 ▲10624.46 ▲6.22656.98 ▲42.4352.33 ▼4.03
Media Library /wp-admin/upload.php1,382 ▼64.17 ▼0.0696.74 ▲0.1341.46 ▲0.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: blocks, gutenberg blocks, testimony, testimonial, gutenberg...

testimonial-wp-block/testimonial-wp-block.php Passed 13 tests

This is the main PHP file of "Testimonial Block" version 1.2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
47 characters long description:
Display testimonials & gain instant credibility

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
There were no executable files found in this plugin792 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP9103164682
JavaScript514795
JSON20012
CSS3163

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity32.40
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity5.43
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods33
▷ Static methods1236.36%
▷ Public methods2987.88%
▷ Protected methods00.00%
▷ Private methods412.12%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin