Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼10.23ms] Passed 4 tests
A check of server-side resources used by XPAC Lottie Interactive Animations
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 41.81 ▲2.30 |
Dashboard /wp-admin | 3.52 ▲0.17 | 50.85 ▼13.08 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 46.33 ▼3.64 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 82.12 ▼25.23 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 34.36 ▲1.04 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for XPAC Lottie Interactive Animations
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 13.48 ▼1.11 | 25.52 ▲24.07 | 43.50 ▲1.33 |
Dashboard /wp-admin | 2,192 ▲17 | 5.57 ▼0.07 | 97.46 ▼2.86 | 42.08 ▼2.65 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.97 ▲0.00 | 35.12 ▼4.03 | 30.10 ▼3.86 |
Add New Post /wp-admin/post-new.php | 6,373 ▲4,836 | 23.16 ▲4.78 | 916.78 ▲275.62 | 37.13 ▼25.91 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.19 ▲0.03 | 97.70 ▲2.72 | 44.80 ▲1.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Please fix the following
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'XPACGroup\\Plugin\\XPACLottie\\blocks\\BaseBlock' not found in wp-content/plugins/xpac-lottie-interactive-animation/src/blocks/Lottie.php:13
- > PHP Fatal error
Uncaught Error: Class 'XPACGroup\\PluginFramework\\v1_0_1\\Plugin' not found in wp-content/plugins/xpac-lottie-interactive-animation/src/Bootstrap.php:9
- > PHP Fatal error
Uncaught Error: Class 'XPACGroup\\PluginFramework\\v1_0_1\\Container' not found in wp-content/plugins/xpac-lottie-interactive-animation/vendor/xpac/plugin/src/Plugin.php:7
- > PHP Fatal error
Uncaught Error: Class 'XPACGroup\\PluginFramework\\v1_0_1\\Container' not found in wp-content/plugins/xpac-lottie-interactive-animation/vendor/xpac/plugin/src/Component.php:4
- > PHP Fatal error
Uncaught Error: Class 'XPACGroup\\Core\\v1_0_1\\Container' not found in wp-content/plugins/xpac-lottie-interactive-animation/vendor/xpac/plugin/src/Container.php:7
- > PHP Fatal error
Uncaught Error: Class 'XPACGroup\\PluginFramework\\v1_0_1\\Component' not found in wp-content/plugins/xpac-lottie-interactive-animation/src/blocks/BaseBlock.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Adding Lottie Animation block in the Block editor), #2 (Chain mode controls), #3 (Scroll mode controls), #4 (Available in Widget Area and Site Editor)
xpac-lottie-interactive-animation/xpac-lottie-interactive-animations.php 77% from 13 tests
The entry point to "XPAC Lottie Interactive Animations" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("xpac-lottie-interactive-animation.php" instead of "xpac-lottie-interactive-animations.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,602 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 304 | 915 | 1,379 |
JSON | 4 | 0 | 0 | 204 |
YAML | 1 | 1 | 6 | 17 |
JavaScript | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 19.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 5 | 41.67% |
▷ Concrete classes | 7 | 58.33% |
▷ Final classes | 1 | 14.29% |
Methods | 116 | |
▷ Static methods | 21 | 18.10% |
▷ Public methods | 92 | 79.31% |
▷ Protected methods | 10 | 8.62% |
▷ Private methods | 14 | 12.07% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin