Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.18MB] [CPU: ▼5.37ms] Passed 4 tests
Server-side resources used by Lottie Player block - Implement Lottie animations.
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 39.21 ▼1.65 |
Dashboard /wp-admin | 3.49 ▲0.14 | 46.61 ▼13.25 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 46.70 ▲2.45 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 85.63 ▼9.02 |
Media Library /wp-admin/upload.php | 3.42 ▲0.18 | 36.97 ▲3.81 |
Lottie Player - Block /wp-admin/admin.php?page=embed-lottie-player | 3.37 | 36.46 |
Server storage [IO: ▲1.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
lpb_pro-redirect |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Lottie Player block - Implement Lottie animations.
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,538 ▼1,197 | 12.51 ▼1.87 | 22.92 ▲21.00 | 35.39 ▼9.09 |
Dashboard /wp-admin | 2,203 ▲15 | 5.80 ▲0.77 | 107.88 ▼9.89 | 42.97 ▼1.36 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▼0.03 | 42.38 ▲5.46 | 34.06 ▼0.27 |
Add New Post /wp-admin/post-new.php | 6,211 ▲4,678 | 23.07 ▼0.05 | 909.78 ▲197.07 | 47.64 ▼19.01 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.27 ▼0.00 | 96.13 ▼7.61 | 40.05 ▼8.00 |
Lottie Player - Block /wp-admin/admin.php?page=embed-lottie-player | 786 | 2.30 | 51.56 | 25.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- lpb_pro-redirect
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 5× 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/embed-lottie-player/inc/CustomPost.php:6
- > PHP Fatal error
Uncaught Error: Class 'BSDK' not found in wp-content/plugins/embed-lottie-player/bplugins_sdk/inc/Base/Activate.php:3
- > PHP Warning
Use of undefined constant LPB_PLUGIN_VERSION - assumed 'LPB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/embed-lottie-player/dist/editor.asset.php on line 4
- > PHP Warning
Use of undefined constant LPB_PLUGIN_VERSION - assumed 'LPB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/embed-lottie-player/dist/script.asset.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'BSDK' not found in wp-content/plugins/embed-lottie-player/bplugins_sdk/inc/Base/License.php:3
- > 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 87% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Screenshots: Please describe screenshot #4 in embed-lottie-player/assets to your readme.txt
- Requires at least: Version not formatted correctly
embed-lottie-player/plugin.php 85% from 13 tests
The main PHP file in "Lottie Player block - Implement Lottie animations." ver. 1.1.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("embed-lottie-player.php" instead of "plugin.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,837 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 131 | 66 | 646 |
JavaScript | 18 | 73 | 101 | 507 |
PO File | 2 | 104 | 203 | 239 |
JSON | 5 | 0 | 0 | 212 |
Sass | 3 | 11 | 5 | 184 |
CSS | 5 | 4 | 4 | 49 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 9.71 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 3 | 5.77% |
▷ Public methods | 50 | 96.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.85% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bplugins_sdk/dist/assets/images/shield_success.png | 3.47KB | 3.61KB | 0.00% |