93% acf-add-testimonials-blocks

Code Review | Testimonial Slider block using ACF

WordPress plugin Testimonial Slider block using ACF scored 93% from 54 tests.

About plugin

  • Plugin page: acf-add-testimoni...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.4
  • WordPress version: 5.9.2
  • First release: Jun 16, 2020
  • Latest release: Jun 17, 2020
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: aistechnolabspvtltd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 317 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Testimonial Slider block using ACF
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0358.94 ▲1.82
Dashboard /wp-admin3.42 ▲0.0238.85 ▲4.66
Posts /wp-admin/edit.php3.65 ▲0.0143.00 ▲2.65
Add New Post /wp-admin/post-new.php6.89 ▼0.08101.00 ▼1,170.29
Media Library /wp-admin/upload.php3.31 ▲0.0125.20 ▲0.71

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Testimonial Slider block using ACF
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,918 ▲16417.04 ▲1.198.98 ▲3.022.36 ▼0.46
Dashboard /wp-admin2,907 ▲266.44 ▼0.05126.25 ▼10.47158.40 ▼3.62
Posts /wp-admin/edit.php2,694 ▲63.44 ▲0.0261.30 ▼5.83138.57 ▼0.68
Add New Post /wp-admin/post-new.php1,660 ▼116.95 ▲0.13396.20 ▼7.88169.20 ▲12.42
Media Library /wp-admin/upload.php1,698 ▼05.73 ▲0.00136.44 ▼1.47189.74 ▲4.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-add-testimonials-blocks/includes/acftb-block-register.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function have_rows() in wp-content/plugins/acf-add-testimonials-blocks/acftb-create-block/acftb_cstm_testimonial.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/acf-add-testimonials-blocks/acftb-testimonials-blocks.php:13

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)
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: The official readme.txt is a good inspiration

acf-add-testimonials-blocks/acftb-testimonials-blocks.php 92% from 13 tests

This is the main PHP file of "Testimonial Slider block using ACF" 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
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("acf-add-testimonials-blocks.php" instead of "acftb-testimonials-blocks.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected14,872 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
There were not PNG files found in your plugin