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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.38 ▼37.41 |
Dashboard /wp-admin | 2.05 ▼1.30 | 4.73 ▼57.94 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.04 ▼46.85 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.03 ▼98.56 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲222 | 13.77 ▼0.63 | 5.86 ▲4.01 | 39.76 ▼5.41 |
Dashboard /wp-admin | 2,237 ▲46 | 5.93 ▲1.01 | 119.33 ▲13.98 | 42.30 ▼2.39 |
Posts /wp-admin/edit.php | 2,123 ▲31 | 2.11 ▲0.12 | 41.41 ▲2.57 | 36.78 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,554 ▲21 | 18.73 ▼4.33 | 637.66 ▲42.15 | 36.76 ▼23.30 |
Media Library /wp-admin/upload.php | 1,425 ▲43 | 4.29 ▲0.07 | 98.89 ▼1.03 | 42.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
- > PHP Fatal error
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:
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
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 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
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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/slider.png | 0.31KB | 1.51KB | 0.00% |
images/colorpicker_hex.png | 0.52KB | 0.42KB | ▼ 19.92% |
images/custom_submit.png | 0.97KB | 0.99KB | 0.00% |
images/colorpicker_background.png | 1.85KB | 2.14KB | 0.00% |
images/colorpicker_hsb_s.png | 1.14KB | 0.80KB | ▼ 29.97% |