89% animated-headline-visual-composer

Code Review | Animated Headline - Visual Composer (WPBakery Page Builder)

WordPress plugin Animated Headline - Visual Composer (WPBakery Page Builder) scored89%from 54 tests.

About plugin

  • Plugin page: animated-headline...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Mar 4, 2019
  • Latest release: Aug 27, 2023
  • Number of updates: 11
  • Update frequency: every 148.9 days
  • Top authors: sajjad67 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,878 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Animated Headline - Visual Composer (WPBakery Page Builder)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.46 ▲0.25
Dashboard /wp-admin3.31 ▲0.0048.92 ▼4.98
Posts /wp-admin/edit.php3.36 ▲0.0051.57 ▼0.07
Add New Post /wp-admin/post-new.php5.89 ▲0.00125.68 ▲29.01
Media Library /wp-admin/upload.php3.23 ▲0.0035.20 ▼0.63

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Animated Headline - Visual Composer (WPBakery Page Builder)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.23 ▼1.162.22 ▲0.5444.15 ▼0.23
Dashboard /wp-admin2,200 ▲115.85 ▲0.9299.88 ▼14.8241.02 ▲0.08
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0542.05 ▲0.4634.78 ▼1.43
Add New Post /wp-admin/post-new.php1,543 ▲2418.23 ▼4.90608.76 ▼94.1048.32 ▼11.40
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.05100.50 ▼14.8844.85 ▼3.13

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

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

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
Attributes that require attention: The official readme.txt might help

animated-headline-visual-composer/animated-heading-vc.php 92% from 13 tests

Analyzing the main PHP file in "Animated Headline - Visual Composer (WPBakery Page Builder)" version 1.0.3
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("animated-headline-visual-composer.php" instead of "animated-heading-vc.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected3,169 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS498662,382
JavaScript416729595
PHP14850150
SVG10042

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants2
▷ Global constants2100.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