89% turbocharged-testimonial-block

Code Review | Turbocharged Testimonial Block

WordPress plugin Turbocharged Testimonial Block scored89%from 54 tests.

About plugin

  • Plugin page: turbocharged-test...
  • Plugin version: 1.0.12
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 6.3.1
  • First release: Feb 13, 2020
  • Latest release: Nov 3, 2020
  • Number of updates: 53
  • Update frequency: every 5.0 days
  • Top authors: blockhandbook (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /1,820 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Turbocharged Testimonial Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.96 ▼0.10
Dashboard /wp-admin3.32 ▲0.0147.34 ▼2.81
Posts /wp-admin/edit.php3.37 ▲0.0149.98 ▲2.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.53 ▼15.99
Media Library /wp-admin/upload.php3.24 ▲0.0136.63 ▼1.84

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Turbocharged Testimonial Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.40 ▼0.162.16 ▲0.3845.50 ▲4.74
Dashboard /wp-admin2,223 ▲235.84 ▼0.0299.58 ▼3.3840.61 ▼1.21
Posts /wp-admin/edit.php2,099 ▼11.99 ▲0.0036.20 ▼1.7433.20 ▼3.22
Add New Post /wp-admin/post-new.php6,196 ▲4,65019.20 ▼3.94870.07 ▲219.4160.51 ▲6.64
Media Library /wp-admin/upload.php1,402 ▲24.23 ▼0.0393.82 ▼13.3942.62 ▼5.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: wordpress blocks, gutenberg blocks, block, gutenberg, blocks...

turbocharged-testimonial-block/Plugin.php 77% from 13 tests

The main file in "Turbocharged Testimonial Block" v. 1.0.12 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("turbocharged-testimonial-block.php" instead of "Plugin.php")
  • Domain Path: The domain path folder was not found ("/languages")
  • Description: The description should be shorter than 140 characters (currently 152 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin2,651 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript141101391,509
PHP14222298620
CSS49512312
JSON200129
Sass316581

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity10.71
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods42
▷ Static methods1740.48%
▷ Public methods4095.24%
▷ Protected methods00.00%
▷ Private methods24.76%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ 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
10 PNG files occupy 0.28MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/assets/img/is-style-third-flipped.png30.56KB8.69KB▼ 71.58%
src/assets/img/is-style-full.png32.64KB10.82KB▼ 66.84%
src/assets/img/is-style-third.png30.83KB8.62KB▼ 72.03%
src/assets/img/is-style-circle-left.png17.80KB5.09KB▼ 71.39%
src/assets/img/is-style-half.png43.02KB11.99KB▼ 72.12%