93% call-to-action-box-animate-for-elementor

Code Review | Call to Action Box Animate for Elementor

WordPress plugin Call to Action Box Animate for Elementor scored 93% from 54 tests.

About plugin

  • Plugin page: call-to-action-bo...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 5.9.2
  • First release: Apr 12, 2018
  • Latest release: Sep 19, 2019
  • Number of updates: 21
  • Update frequency: every 25.0 days
  • Top authors: internetcss (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active / 12,920 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼315.61ms] Passed 4 tests

Analyzing server-side resources used by Call to Action Box Animate for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0363.69 ▲12.70
Dashboard /wp-admin3.44 ▲0.0332.77 ▼2.22
Posts /wp-admin/edit.php3.66 ▲0.0236.63 ▼3.08
Add New Post /wp-admin/post-new.php6.91 ▼0.0696.15 ▼1,248.99
Media Library /wp-admin/upload.php3.31 ▲0.0123.88 ▼8.14

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Call to Action Box Animate for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,801 ▲4715.93 ▲0.326.46 ▲0.593.04 ▲0.22
Dashboard /wp-admin2,895 ▲346.15 ▼0.15120.99 ▼16.95154.63 ▼8.79
Posts /wp-admin/edit.php2,695 ▲13.24 ▼0.0064.86 ▲0.91141.16 ▲1.99
Add New Post /wp-admin/post-new.php1,664 ▲315.99 ▼6.42444.79 ▲40.25156.29 ▼6.03
Media Library /wp-admin/upload.php1,704 ▲95.50 ▼0.04137.86 ▼9.69191.50 ▼10.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
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 smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\add_action() in wp-content/plugins/call-to-action-box-animate-for-elementor/elementor-helper.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: You can look at the official readme.txt

call-to-action-box-animate-for-elementor/elementor-cta-box-animate.php 77% from 13 tests

The main PHP script in "Call to Action Box Animate for Elementor" version 1.0.3 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 272 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("call-to-action-box-animate-for-elementor.php" instead of "elementor-cta-box-animate.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected3,614 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP42891783,024
CSS214918568
JavaScript12122

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity50.00
▷ Minimum class complexity50.00
▷ Maximum class complexity50.00
Average method complexity5.45
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods654.55%
▷ Protected methods545.45%
▷ Private methods00.00%
Functions8
▷ Named functions450.00%
▷ Anonymous functions450.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/eb-cta-box-animate.png5.36KB2.77KB▼ 48.31%