74% aam-animate-scroll

Code Review | VainCode Animate Scroll Wordpress

WordPress plugin VainCode Animate Scroll Wordpress scored74%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: 6.3.1
  • 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

20+ active /3,600 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.97MB] [CPU: ▼60.19ms] Passed 4 tests

This is a short check of server-side resources used by VainCode Animate Scroll Wordpress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.38 ▼37.41
Dashboard /wp-admin2.05 ▼1.304.73 ▼57.94
Posts /wp-admin/edit.php2.05 ▼1.316.04 ▼46.85
Add New Post /wp-admin/post-new.php2.05 ▼3.845.03 ▼98.56
Media Library /wp-admin/upload.php2.05 ▼1.185.00 ▼28.01

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for VainCode Animate Scroll Wordpress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,968 ▲22213.77 ▼0.635.86 ▲4.0139.76 ▼5.41
Dashboard /wp-admin2,237 ▲465.93 ▲1.01119.33 ▲13.9842.30 ▼2.39
Posts /wp-admin/edit.php2,123 ▲312.11 ▲0.1241.41 ▲2.5736.78 ▲0.47
Add New Post /wp-admin/post-new.php1,554 ▲2118.73 ▼4.33637.66 ▲42.1536.76 ▼23.30
Media Library /wp-admin/upload.php1,425 ▲434.29 ▲0.0798.89 ▼1.0342.33 ▼0.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function 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.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: back to to, sidebar, plugin, wordpress plugin back to top, widget...

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

Analyzing the main PHP file in "VainCode Animate Scroll Wordpress" version 1.1
Please make the necessary changes and fix the following:
  • Main file name: The principal 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 a short overview of programming languages used in this plugin, detecting executable files
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

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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

All PNG images should be compressed to minimize bandwidth usage for end users
22 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/slider.png0.31KB1.51KB0.00%
images/colorpicker_hex.png0.52KB0.42KB▼ 19.92%
images/custom_submit.png0.97KB0.99KB0.00%
images/colorpicker_background.png1.85KB2.14KB0.00%
images/colorpicker_hsb_s.png1.14KB0.80KB▼ 29.97%