Benchmarks
Plugin footprint 65% 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: ▼1.52MB] [CPU: ▼336.68ms] Passed 4 tests
This is a short check of server-side resources used by PT Addons for Elementor Lite
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▼0.66 | 10.12 ▼41.85 |
Dashboard /wp-admin | 2.87 ▼0.54 | 8.72 ▼24.64 |
Posts /wp-admin/edit.php | 2.87 ▼0.77 | 8.30 ▼31.93 |
Add New Post /wp-admin/post-new.php | 2.87 ▼4.10 | 8.77 ▼1,248.30 |
Media Library /wp-admin/upload.php | 2.87 ▼0.42 | 7.72 ▼18.49 |
Server storage [IO: ▲9.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 468 new files
Database: no new tables, 3 new options
New WordPress options |
---|
pt_plugins_data |
pt_save_settings |
pt_version |
Browser metrics Passed 4 tests
PT Addons for Elementor Lite: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,881 ▲133 | 17.47 ▲1.68 | 15.68 ▲9.28 | 3.08 ▲0.80 |
Dashboard /wp-admin | 2,954 ▲93 | 7.26 ▲1.08 | 125.46 ▼13.17 | 181.79 ▲19.53 |
Posts /wp-admin/edit.php | 2,762 ▲68 | 3.49 ▲0.26 | 68.40 ▲3.03 | 141.96 ▲0.32 |
Add New Post /wp-admin/post-new.php | 1,772 ▲61 | 21.98 ▲0.97 | 432.56 ▼7.11 | 162.34 ▲0.10 |
Media Library /wp-admin/upload.php | 1,773 ▲75 | 6.22 ▲0.69 | 128.44 ▼14.20 | 209.86 ▲27.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5768
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 enqueue_scripts handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options detected upon uninstall: 3 options
- pt_version
- pt_save_settings
- recovery_mode_email_last_sent
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/pt-elementor-addons-lite/elements/templates/list.php
- > /wp-content/plugins/pt-elementor-addons-lite/elements/templates/masonry.php
- > /wp-content/plugins/pt-elementor-addons-lite/admin/pt-plugin-sidebar.php
- 25× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pt-elementor-addons-lite/admin/pt-plugin-footer.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/pt-elementor-addons-lite/admin/pt-plugin-header.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_option() in wp-content/plugins/pt-elementor-addons-lite/templates/admin/map.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pt-elementor-addons-lite/templates/admin/general.php:19
- > PHP Warning
Use of undefined constant PT_PLUGIN_URL - assumed 'PT_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/pt-elementor-addons-lite/templates/admin/go-pro.php on line 8
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pt-elementor-addons-lite/includes/triat/functions.php on line 8
- > PHP Warning
require(ABSPATHWPINC/option.php): failed to open stream: No such file or directory in wp-content/plugins/pt-elementor-addons-lite/includes/triat/functions.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pt-elementor-addons-lite/templates/admin/go-pro.php:10
- > PHP Warning
Use of undefined constant PT_PLUGIN_URL - assumed 'PT_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/pt-elementor-addons-lite/templates/admin/tools.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/pt-elementor-addons-lite/admin/pt-plugin-header.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
pt-elementor-addons-lite/pt-elementor-addons.php 77% from 13 tests
The principal PHP file in "PT Addons for Elementor Lite" v. 2.0.2 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("pt-elementor-addons-lite.php" instead of "pt-elementor-addons.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 141 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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 detected170,656 lines of code in 391 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 154 | 9,103 | 9,269 | 82,564 |
CSS | 127 | 4,299 | 1,962 | 53,432 |
JavaScript | 77 | 8,342 | 5,340 | 34,051 |
SVG | 33 | 2 | 12 | 609 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
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 | 19.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 96.00 |
Code structure | ||
---|---|---|
Namespaces | 66 | |
Interfaces | 0 | |
Traits | 8 | |
Classes | 130 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 130 | 100.00% |
▷ Final classes | 1 | 0.77% |
Methods | 1,188 | |
▷ Static methods | 33 | 2.78% |
▷ Public methods | 822 | 69.19% |
▷ Protected methods | 310 | 26.09% |
▷ Private methods | 56 | 4.71% |
Functions | 241 | |
▷ Named functions | 231 | 95.85% |
▷ Anonymous functions | 10 | 4.15% |
Constants | 11 | |
▷ Global constants | 10 | 90.91% |
▷ Class constants | 1 | 9.09% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/gift-icon.png | 6.15KB | 2.36KB | ▼ 61.62% |
admin/images/logo-shape16.png | 0.72KB | 0.81KB | 0.00% |
(invalid) assets/admin/images/pt-featured.png | 24.60KB | 0.00KB | ▼ 100.00% |
assets/front-end/img/play-icon.png | 3.75KB | 3.92KB | 0.00% |
assets/admin/images/pt-logo.png | 8.17KB | 2.56KB | ▼ 68.63% |