89% call-to-action-block-wppool

Code Review | Call to Action Block - WPPOOL

WordPress plugin Call to Action Block - WPPOOL scored89%from 54 tests.

About plugin

  • Plugin page: call-to-action-bl...
  • Plugin version: 2.1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 19, 2020
  • Latest release: Oct 8, 2023
  • Number of updates: 32
  • Update frequency: every 35.8 days
  • Top authors: azizultex (56.25%)foysalremon (31.25%)wppool (18.75%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /15,881 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.01ms] Passed 4 tests

Analyzing server-side resources used by Call to Action Block - WPPOOL
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0336.58 ▲0.14
Dashboard /wp-admin3.33 ▲0.0342.44 ▼5.88
Posts /wp-admin/edit.php3.38 ▲0.0245.44 ▲2.51
Add New Post /wp-admin/post-new.php5.91 ▲0.0387.64 ▼2.69
Media Library /wp-admin/upload.php3.25 ▲0.0235.40 ▲0.40

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Call to Action Block - WPPOOL
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.75 ▲0.401.79 ▲0.0937.03 ▼5.10
Dashboard /wp-admin2,197 ▲175.63 ▲0.0493.86 ▲5.8338.38 ▼1.27
Posts /wp-admin/edit.php2,102 ▲22.03 ▲0.0639.92 ▼0.0436.06 ▼1.08
Add New Post /wp-admin/post-new.php6,208 ▲4,68221.29 ▼2.30853.00 ▲173.5667.98 ▲21.97
Media Library /wp-admin/upload.php1,405 ▲84.19 ▲0.0496.85 ▼4.3644.11 ▼1.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: The official readme.txt might help

call-to-action-block-wppool/plugin.php 85% from 13 tests

The primary PHP file in "Call to Action Block - WPPOOL" version 2.1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("call-to-action-block-wppool.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin7,671 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
Sass25203,208
CSS2141873,119
JavaScript7104601,144
PHP32013372
XML1172572
PO File1151546
JSON1009
Markdown1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues 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.11
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/cta_1.png31.87KB9.15KB▼ 71.29%