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.30MB] [CPU: ▼9.23ms] Passed 4 tests
Analyzing server-side resources used by Animate on Scroll
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.12 ▲0.39 | 43.62 ▼2.48 |
Dashboard /wp-admin | 3.93 ▲0.30 | 53.07 ▼15.32 |
Posts /wp-admin/edit.php | 3.98 ▲0.30 | 51.94 ▼5.03 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.30 | 88.16 ▼14.08 |
Media Library /wp-admin/upload.php | 3.79 ▲0.30 | 42.10 ▲7.70 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Animate on Scroll: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲52 | 14.27 ▼0.11 | 2.04 ▲0.20 | 40.62 ▼2.23 |
Dashboard /wp-admin | 2,195 ▲28 | 5.64 ▲0.06 | 90.96 ▼16.01 | 38.46 ▼4.98 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▼0.05 | 40.18 ▼2.23 | 37.46 ▼3.43 |
Add New Post /wp-admin/post-new.php | 1,554 ▲23 | 18.49 ▼4.82 | 637.00 ▼51.23 | 54.47 ▼2.25 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.27 ▲0.06 | 100.81 ▼8.40 | 44.69 ▼0.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/animate-on-scroll/includes/index.php
- > /wp-content/plugins/animate-on-scroll/public/js/index.php
- > /wp-content/plugins/animate-on-scroll/public/css/index.php
- > /wp-content/plugins/animate-on-scroll/public/index.php
- > /wp-content/plugins/animate-on-scroll/index.php
- > /wp-content/plugins/animate-on-scroll/vendor/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
animate-on-scroll/plugin.php 85% from 13 tests
The main PHP script in "Animate on Scroll" version 1.0.6 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("animate-on-scroll.php" instead of "plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,179 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 845 | 477 | 2,152 |
JavaScript | 1 | 0 | 2 | 26 |
CSS | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 116)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 169.67 |
▷ Minimum class complexity | 122.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 6.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 116.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 2 | 2.04% |
▷ Public methods | 83 | 84.69% |
▷ Protected methods | 15 | 15.31% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 28 | |
▷ Global constants | 28 | 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
There were not PNG files found in your plugin