90% custom-call-to-action-block

Code Review | Custom Call To Action block Plugin

WordPress plugin Custom Call To Action block Plugin scored 90% from 54 tests.

About plugin

  • Plugin page: custom-call-to-ac...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 25, 2020
  • Latest release: Mar 21, 2021
  • Number of updates: 6
  • Update frequency: every 70.3 days
  • Top authors: brijeshdhanani (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 5,172 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
Installer ran successfully

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

An overview of server-side resources used by Custom Call To Action block Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.23 ▲0.04
Dashboard /wp-admin3.31 ▲0.0143.41 ▼6.55
Posts /wp-admin/edit.php3.36 ▲0.0147.66 ▼0.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.09 ▼15.49
Media Library /wp-admin/upload.php3.23 ▲0.0033.43 ▼1.68

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Custom Call To Action block Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.74 ▲0.361.50 ▼0.2537.04 ▼15.35
Dashboard /wp-admin2,200 ▲125.79 ▼0.05111.88 ▼1.7144.48 ▲1.50
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0435.88 ▼6.0429.10 ▼7.77
Add New Post /wp-admin/post-new.php6,583 ▲5,05029.33 ▲6.04934.18 ▲240.8560.26 ▲3.60
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0195.68 ▼14.2141.96 ▼5.25

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: custom call to action button, gutenberg, cta button, custom gutenberg block, call to action...

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

The principal PHP file in "Custom Call To Action block Plugin" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("custom-call-to-action-block.php" instead of "gutenberg-call-to-action.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin268 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1847236
PHP141832

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin