100% call-to-action-customizable-block

Code Review | Call To Action Customizable Block

WordPress plugin Call To Action Customizable Block scored 100% from 54 tests.

About plugin

  • Plugin page: call-to-action-cu...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jan 10, 2020
  • Latest release: Jul 10, 2020
  • Number of updates: 8
  • Update frequency: every 22.7 days
  • Top authors: bhaveshkhadodara (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active / 2,661 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼142.22ms] Passed 4 tests

This is a short check of server-side resources used by Call To Action Customizable Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1332.29 ▲8.79
Dashboard /wp-admin3.06 ▲0.0136.61 ▼9.52
Posts /wp-admin/edit.php3.12 ▲0.0144.17 ▼0.44
Add New Post /wp-admin/post-new.php5.42 ▼0.0188.67 ▼560.93
Media Library /wp-admin/upload.php3.01 ▲0.0133.33 ▲2.00

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Call To Action Customizable Block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,715 ▲11916.27 ▲0.7511.46 ▲0.9648.35 ▼7.16
Dashboard /wp-admin2,967 ▲335.91 ▼0.08138.67 ▼7.17120.26 ▲7.07
Posts /wp-admin/edit.php2,739 ▲32.72 ▼0.0160.56 ▼2.6588.23 ▼1.87
Add New Post /wp-admin/post-new.php1,703 ▲20518.91 ▲0.05364.63 ▼6.95125.76 ▲22.00
Media Library /wp-admin/upload.php1,807 ▼35.03 ▼0.02147.09 ▼9.47120.99 ▲2.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 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
4 plugin tags: action, gutenberg, block, call

call-to-action-customizable-block/call-to-action-block.php 92% from 13 tests

"Call To Action Customizable Block" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("call-to-action-customizable-block.php" instead of "call-to-action-block.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
There were no executable files found in this plugin403 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ 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 files were detected