89% call-to-action-customizable-block

Code Review | Call To Action Customizable Block

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

About plugin

  • Plugin page: call-to-action-cu...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 10, 2020
  • Latest release: Jun 11, 2022
  • Number of updates: 13
  • Update frequency: every 67.9 days
  • Top authors: bhaveshkhadodara (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /8,327 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼7.60ms] 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 /3.47 ▲0.0136.61 ▼3.03
Dashboard /wp-admin3.31 ▼0.0345.40 ▼14.02
Posts /wp-admin/edit.php3.36 ▲0.0149.90 ▲3.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.79 ▼15.31
Media Library /wp-admin/upload.php3.23 ▲0.0136.48 ▲1.97

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, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_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 /2,824 ▲6314.35 ▼0.231.80 ▲0.3039.43 ▼0.74
Dashboard /wp-admin2,195 ▲155.52 ▼0.1579.39 ▼5.2739.34 ▼3.06
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0438.40 ▲0.9435.04 ▲2.91
Add New Post /wp-admin/post-new.php6,366 ▲4,83827.73 ▲4.49917.23 ▲236.7361.81 ▲6.96
Media Library /wp-admin/upload.php1,403 ▼04.17 ▼0.06103.46 ▲6.4647.29 ▲3.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed: The official readme.txt is a good inspiration

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

"Call To Action Customizable Block" version 1.1.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
JavaScript11329378
PHP131723
CSS2002

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
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 files were detected