Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.22ms] Passed 4 tests
Server-side resources used by Animations by Imoptimal
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 41.91 ▼0.76 |
Dashboard /wp-admin | 3.43 ▲0.12 | 48.45 ▼4.43 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 55.16 ▲8.63 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 97.23 ▼8.32 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 38.52 ▲4.64 |
Animations by Imoptimal /wp-admin/options-general.php?page=imoanim_animations | 3.32 | 34.88 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Animations by Imoptimal: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲171 | 13.78 ▼0.44 | 7.75 ▲6.03 | 40.36 ▼5.49 |
Dashboard /wp-admin | 2,210 ▲19 | 5.85 ▼0.07 | 101.20 ▼1.08 | 38.92 ▼2.94 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.98 ▼0.02 | 39.48 ▲2.91 | 36.31 ▲4.61 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 18.77 ▼4.45 | 587.40 ▼80.30 | 66.88 ▲4.72 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.24 ▼0.01 | 99.34 ▼3.01 | 42.87 ▼4.48 |
Animations by Imoptimal /wp-admin/options-general.php?page=imoanim_animations | 1,921 | 1.70 | 26.57 | 54.50 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/animations-by-imoptimal/inc/register-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/animations-by-imoptimal/inc/enqueue-resources.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: animatecss, animation, css animation, on scroll animation, viewport...
animations-by-imoptimal/imoptimal-animation.php 77% from 13 tests
This is the main PHP file of "Animations by Imoptimal" version 1.7.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("animations-by-imoptimal.php" instead of "imoptimal-animation.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Description: Please don't use more than 140 characters for the plugin description (currently 425 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin4,056 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 593 | 24 | 3,279 |
PHP | 6 | 118 | 39 | 615 |
JavaScript | 4 | 32 | 20 | 162 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1 | |
▷ Static methods | 1 | 100.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/imoptimal-logo-white.png | 7.83KB | 4.28KB | ▼ 45.33% |