83% cvw-pb-animation

Code Review | AOS Animation for SiteOrigin Page Builder

WordPress plugin AOS Animation for SiteOrigin Page Builder scored83%from 54 tests.

About plugin

  • Plugin page: cvw-pb-animation
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9.3
  • WordPress version: 6.3.1
  • First release: Apr 30, 2019
  • Latest release: Apr 11, 2022
  • Number of updates: 16
  • Update frequency: every 67.4 days
  • Top authors: cowalenciawebs (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

4,000+ active /25,882 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 gracefully, with no errors

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

Server-side resources used by AOS Animation for SiteOrigin Page Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.98 ▼4.28
Dashboard /wp-admin3.32 ▼0.0343.26 ▼15.35
Posts /wp-admin/edit.php3.37 ▲0.0149.32 ▲4.00
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.53 ▼10.70
Media Library /wp-admin/upload.php3.24 ▲0.0137.12 ▲0.74

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for AOS Animation for SiteOrigin Page Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.29 ▼0.443.20 ▲1.4937.90 ▼0.34
Dashboard /wp-admin2,198 ▲245.63 ▼0.0581.28 ▼9.0636.57 ▼1.16
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0436.01 ▼1.2730.27 ▼0.70
Add New Post /wp-admin/post-new.php1,526 ▼323.32 ▲0.09597.11 ▼30.2462.74 ▲8.61
Media Library /wp-admin/upload.php1,400 ▲34.22 ▲0.0596.47 ▼1.9145.27 ▲1.45

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/cvw-pb-animation/cvw-pb-animation.php:17

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 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

cvw-pb-animation/cvw-pb-animation.php 85% from 13 tests

The main PHP file in "AOS Animation for SiteOrigin Page Builder" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected412 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP12815314
PO File1395093
JavaScript1114
CSS1011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected