83% rotating-words-for-visual-composer

Code Review | Rotating Words For WPBakery Page Builder

WordPress plugin Rotating Words For WPBakery Page Builder scored83%from 54 tests.

About plugin

  • Plugin page: rotating-words-fo...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0
  • WordPress version: 6.3.1
  • First release: Jul 15, 2019
  • Latest release: Oct 9, 2022
  • Number of updates: 12
  • Update frequency: every 98.6 days
  • Top authors: Labibahmed42 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,262 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.60ms] Passed 4 tests

A check of server-side resources used by Rotating Words For WPBakery Page Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.35 ▲0.61
Dashboard /wp-admin3.31 ▼0.0446.52 ▼10.00
Posts /wp-admin/edit.php3.36 ▲0.0045.29 ▼1.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.41 ▼18.81
Media Library /wp-admin/upload.php3.23 ▲0.0032.77 ▼4.41

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Rotating Words For WPBakery Page Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.28 ▼0.001.72 ▲0.0744.56 ▲5.14
Dashboard /wp-admin2,201 ▲335.51 ▼0.0988.61 ▲2.1141.39 ▼5.36
Posts /wp-admin/edit.php2,109 ▲91.97 ▼0.0236.19 ▲1.0934.11 ▼0.26
Add New Post /wp-admin/post-new.php1,538 ▲1023.06 ▼0.19662.34 ▲2.6153.42 ▼1.94
Media Library /wp-admin/upload.php1,412 ▲184.22 ▲0.0492.48 ▼7.5340.38 ▼3.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rotating-words-for-visual-composer/plugin.class.php:13

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed: The official readme.txt might help

rotating-words-for-visual-composer/index.php 85% from 13 tests

The entry point to "Rotating Words For WPBakery Page Builder" version 3.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • 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
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rotating-words-for-visual-composer.php" instead of "index.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
There were no executable files found in this plugin383 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP24528158
JavaScript32823133
CSS114092

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin