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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.91 ▼1.61 | 4.25 ▼45.94 |
Dashboard /wp-admin | 1.93 ▼1.48 | 3.58 ▼30.60 |
Posts /wp-admin/edit.php | 1.93 ▼1.71 | 3.48 ▼40.96 |
Add New Post /wp-admin/post-new.php | 1.93 ▼5.05 | 4.66 ▼1,258.99 |
Media Library /wp-admin/upload.php | 1.93 ▼1.37 | 4.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,994 ▲240 | 16.85 ▲1.15 | 10.33 ▲4.42 | 2.71 ▼0.06 |
Dashboard /wp-admin | 2,997 ▲139 | 6.38 ▲0.12 | 119.33 ▼15.33 | 154.69 ▼10.74 |
Posts /wp-admin/edit.php | 2,717 ▲29 | 3.30 ▲0.07 | 67.58 ▲4.22 | 133.70 ▼10.00 |
Add New Post /wp-admin/post-new.php | 1,692 ▼19 | 16.04 ▼4.63 | 428.02 ▼16.08 | 176.70 ▲16.24 |
Media Library /wp-admin/upload.php | 1,813 ▲112 | 5.86 ▲0.39 | 126.35 ▼19.93 | 188.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 64 | 48 | 1,027 |
SVG | 1 | 0 | 0 | 414 |
CSS | 4 | 0 | 3 | 206 |
PHP | 1 | 0 | 0 | 1 |
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 code | 0.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/colorpicker_background.png | 1.85KB | 2.14KB | 0.00% |
images/colorpicker_hsb_s.png | 1.14KB | 0.80KB | ▼ 29.97% |
images/custom_hsb_s.png | 1.14KB | 0.89KB | ▼ 21.75% |
images/custom_hsb_b.png | 1.07KB | 0.82KB | ▼ 23.61% |
images/custom_rgb_b.png | 0.98KB | 0.74KB | ▼ 25.00% |