90% testimonials-block

Code Review | Testimonials Block

WordPress plugin Testimonials Block scored90%from 54 tests.

About plugin

  • Plugin page: testimonials-block
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.0
  • WordPress version: 6.3.1
  • First release: Dec 17, 2018
  • Latest release: Jul 9, 2019
  • Number of updates: 12
  • Update frequency: every 17.0 days
  • Top authors: B-07 (91.67%)raihancse (16.67%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,368 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.90ms] Passed 4 tests

This is a short check of server-side resources used by Testimonials Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0435.59 ▼2.65
Dashboard /wp-admin3.32 ▲0.0244.03 ▼1.01
Posts /wp-admin/edit.php3.37 ▲0.0248.60 ▲1.60
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.03 ▼21.53
Media Library /wp-admin/upload.php3.24 ▲0.0238.31 ▲4.67

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Testimonials Block
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲19513.71 ▼1.048.39 ▲6.6038.26 ▼8.41
Dashboard /wp-admin2,206 ▲215.86 ▲0.87100.34 ▼12.5440.15 ▼3.22
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0839.74 ▲0.2735.71 ▼1.31
Add New Post /wp-admin/post-new.php6,370 ▲4,82327.76 ▲9.51923.42 ▲312.9146.39 ▼2.63
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0595.90 ▼2.0142.88 ▲0.74

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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 just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: gutenberg, slider, testimonials

testimonials-block/plugin.php 92% from 13 tests

This is the main PHP file of "Testimonials Block" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("testimonials-block.php" instead of "plugin.php")

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
Success! There were no dangerous files found in this plugin16,690 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
CSS62,188388,940
JSON3007,034
JavaScript840138439
Sass5393234
PHP2175043

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin