79% ra-widgets-animate

Code Review | RA Widgets Animate

WordPress plugin RA Widgets Animate scored79%from 54 tests.

About plugin

  • Plugin page: ra-widgets-animate
  • Plugin version: 1.1.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2
  • WordPress version: 6.3.1
  • First release: Jun 22, 2017
  • Latest release: Aug 20, 2019
  • Number of updates: 66
  • Update frequency: every 12.0 days
  • Top authors: FrodoBean (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /6,066 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.14MB] [CPU: ▼3.27ms] Passed 4 tests

This is a short check of server-side resources used by RA Widgets Animate
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0734.22 ▼8.21
Dashboard /wp-admin3.47 ▲0.1747.31 ▼3.41
Posts /wp-admin/edit.php3.58 ▲0.2350.47 ▼0.65
Add New Post /wp-admin/post-new.php6.05 ▲0.1692.82 ▼0.81
Media Library /wp-admin/upload.php3.39 ▲0.1635.21 ▲1.93
RA Widgets Animate /wp-admin/options-general.php?page=rawa_settings3.3432.53

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for RA Widgets Animate
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲18213.61 ▼0.696.66 ▲4.6738.19 ▼13.79
Dashboard /wp-admin2,210 ▲224.88 ▼0.04108.84 ▼3.1342.71 ▼4.93
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.0240.22 ▲1.7235.28 ▲1.94
Add New Post /wp-admin/post-new.php1,524 ▲523.02 ▼0.25601.54 ▼7.1855.98 ▲2.90
Media Library /wp-admin/upload.php1,395 ▲74.25 ▲0.0195.28 ▼1.8140.50 ▼3.31
RA Widgets Animate /wp-admin/options-general.php?page=rawa_settings1,0172.2024.9429.99

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=rawa_settings
    • > Notice in wp-content/plugins/ra-widgets-animate/ra-widgets-animate.php+233
    Undefined index: placeholder
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=rawa_settings
    • > Notice in wp-content/plugins/ra-widgets-animate/ra-widgets-animate.php+265
    Undefined index: helper
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=rawa_settings
    • > Notice in wp-content/plugins/ra-widgets-animate/ra-widgets-animate.php+259
    Undefined offset: 0

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ra-widgets-animate/ra-widgets-animate.php:15

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 Passed 29 tests

readme.txt Passed 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
7 plugin tags: animate-on-scroll, animation, siteorigin-page-builder, page-builder-animation, aos...

ra-widgets-animate/ra-widgets-animate.php Passed 13 tests

The entry point to "RA Widgets Animate" version 1.1.9.1 is a PHP file that has certain tags in its header comment area
48 characters long description:
Animate widgets using Animate on Scroll library.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected660 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP29748558
JavaScript109199
CSS3003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity71.00
▷ Minimum class complexity71.00
▷ Maximum class complexity71.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.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
There are no PNG files in this plugin