84% aam-animate-scroll

Code Review | VainCode Animate Scroll Wordpress

WordPress plugin VainCode Animate Scroll Wordpress scored 84% from 54 tests.

About plugin

  • Plugin page: aam-animate-scroll
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 5.9.2
  • First release: Mar 31, 2014
  • Latest release: May 21, 2015
  • Number of updates: 5
  • Update frequency: every 83.2 days
  • Top authors: aamahin (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active / 3,379 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼2.46MB] [CPU: ▼344.12ms] Passed 4 tests

This is a short check of server-side resources used by VainCode Animate Scroll Wordpress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /1.91 ▼1.614.25 ▼45.94
Dashboard /wp-admin1.93 ▼1.483.58 ▼30.60
Posts /wp-admin/edit.php1.93 ▼1.713.48 ▼40.96
Add New Post /wp-admin/post-new.php1.93 ▼5.054.66 ▼1,258.99
Media Library /wp-admin/upload.php1.93 ▼1.374.16 ▼20.47

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

VainCode Animate Scroll Wordpress: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,994 ▲24016.85 ▲1.1510.33 ▲4.422.71 ▼0.06
Dashboard /wp-admin2,997 ▲1396.38 ▲0.12119.33 ▼15.33154.69 ▼10.74
Posts /wp-admin/edit.php2,717 ▲293.30 ▲0.0767.58 ▲4.22133.70 ▼10.00
Add New Post /wp-admin/post-new.php1,692 ▼1916.04 ▼4.63428.02 ▼16.08176.70 ▲16.24
Media Library /wp-admin/upload.php1,813 ▲1125.86 ▲0.39126.35 ▼19.93188.77 ▼5.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5768
    wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the aam-animation-scroll-main-jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

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

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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aam-animate-scroll/aam-scroll-main.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: wordpress plugin back to top, sidebar, plugin, widget, scroll to top plugins...

aam-animate-scroll/aam-scroll-main.php 92% from 13 tests

"VainCode Animate Scroll Wordpress" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("aam-animate-scroll.php" instead of "aam-scroll-main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,648 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript664481,027
SVG100414
CSS403206
PHP1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
22 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/colorpicker_background.png1.85KB2.14KB0.00%
images/colorpicker_hsb_s.png1.14KB0.80KB▼ 29.97%
images/custom_hsb_s.png1.14KB0.89KB▼ 21.75%
images/custom_hsb_b.png1.07KB0.82KB▼ 23.61%
images/custom_rgb_b.png0.98KB0.74KB▼ 25.00%