83% easy-testimonial-blocks

Code Review | Testimonial Gutenberg Blocks

WordPress plugin Testimonial Gutenberg Blocks scored83%from 54 tests.

About plugin

  • Plugin page: easy-testimonial-...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 2, 2023
  • Latest release: Nov 14, 2023
  • Number of updates: 7
  • Update frequency: every 40.9 days
  • Top authors: binsaifullah (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /1,269 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.69ms] Passed 4 tests

Analyzing server-side resources used by Testimonial Gutenberg Blocks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.72 ▼1.31
Dashboard /wp-admin3.36 ▲0.0142.63 ▼20.42
Posts /wp-admin/edit.php3.41 ▲0.0547.28 ▲0.01
Add New Post /wp-admin/post-new.php5.95 ▲0.0694.06 ▼4.27
Media Library /wp-admin/upload.php3.28 ▲0.0533.78 ▼0.77
Testimonial Blocks /wp-admin/tools.php?page=etb-blocks3.2530.56

Server storage [IO: ▲0.13MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Testimonial Gutenberg Blocks
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7814.20 ▼0.511.96 ▲0.2744.22 ▼0.87
Dashboard /wp-admin2,193 ▲185.55 ▼0.1184.32 ▼23.3738.15 ▼5.31
Posts /wp-admin/edit.php2,104 ▲71.96 ▼0.0440.21 ▲5.3535.57 ▲1.15
Add New Post /wp-admin/post-new.php6,375 ▲4,84927.78 ▲4.51878.16 ▲194.4235.95 ▼18.64
Media Library /wp-admin/upload.php1,404 ▲14.26 ▲0.0695.26 ▼2.2940.08 ▼4.30
Testimonial Blocks /wp-admin/tools.php?page=etb-blocks1,3669.02284.5257.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-testimonial-blocks/admin/admin-class.php:11

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 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

easy-testimonial-blocks/plugin.php 85% from 13 tests

The primary PHP file in "Testimonial Gutenberg Blocks" version 1.0.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-testimonial-blocks.php" instead of "plugin.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.6" instead of "5.7")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected964 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP58491410
JSON200275
JavaScript5145143
CSS5282136

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity4.00
▷ Minimum class complexity2.00
▷ Maximum class complexity6.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods14
▷ Static methods17.14%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
There were not PNG files found in your plugin