Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.12MB] [CPU: ▲7.52ms] Passed 4 tests
This is a short check of server-side resources used by AMP Designs for Elementor by LevelUP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.52 ▲1.06 | 60.35 ▲19.98 |
Dashboard /wp-admin | 4.42 ▲1.07 | 58.02 ▼9.28 |
Posts /wp-admin/edit.php | 4.59 ▲1.23 | 58.87 ▲9.54 |
Add New Post /wp-admin/post-new.php | 7.12 ▲1.24 | 102.87 ▲13.06 |
Media Library /wp-admin/upload.php | 4.34 ▲1.11 | 50.76 ▲16.77 |
Settings /wp-admin/admin.php?page=levelup | 4.29 | 41.99 |
Server storage [IO: ▲2.61MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 94 new files
Database: no new tables, 11 new options
New WordPress options |
---|
levelup-library-loaded-version |
levelup_default_designs_load |
elementor_disable_typography_schemes |
elementor_disable_color_schemes |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
levelup-library-version |
db_upgraded |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AMP Designs for Elementor by LevelUP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,995 ▲249 | 13.65 ▼0.91 | 12.24 ▲10.41 | 45.50 ▼1.17 |
Dashboard /wp-admin | 2,297 ▲94 | 5.90 ▼0.04 | 100.72 ▼18.35 | 46.14 ▲2.15 |
Posts /wp-admin/edit.php | 2,174 ▲74 | 2.16 ▲0.17 | 44.28 ▲6.62 | 35.05 ▲1.40 |
Add New Post /wp-admin/post-new.php | 1,617 ▲91 | 23.14 ▲5.47 | 679.21 ▲32.95 | 58.11 ▲1.19 |
Media Library /wp-admin/upload.php | 1,476 ▲73 | 4.20 ▼0.03 | 99.20 ▼3.65 | 44.39 ▼1.20 |
Settings /wp-admin/admin.php?page=levelup | 1,018 | 2.41 | 31.23 | 45.69 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/levelup/uninstall.php+25
Undefined variable: post_type
- Zombie WordPress options detected upon uninstall: 9 options
- widget_theysaidso_widget
- widget_recent-comments
- wp_calendar_block_has_published_posts
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- elementor_disable_color_schemes
- theysaidso_admin_options
- elementor_disable_typography_schemes
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=levelup
- > Notice in wp-content/plugins/levelup/inc/composite-menu.php+151
Undefined index: data-redirect-url
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/levelup/assets/css/levelup-widget-options.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/levelup/inc/vendor/customizer-extra/include/header-panels/sections/menu.php:101
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: gutenberg, amp, elementor, page builder, google amp...
levelup/levelup.php Passed 13 tests
The main PHP script in "AMP Designs for Elementor by LevelUP" version 1.1 is automatically included on every request by WordPress
70 characters long description:
Pre-Built Designs for Elementor & Gutenberg with full AMP Compatiblity
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin21,215 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 203 | 124 | 7,785 |
PHP | 60 | 953 | 1,436 | 6,920 |
JavaScript | 12 | 439 | 249 | 3,838 |
SVG | 1 | 0 | 0 | 2,671 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 10.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 47 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 244 | |
▷ Static methods | 4 | 1.64% |
▷ Public methods | 217 | 88.93% |
▷ Protected methods | 17 | 6.97% |
▷ Private methods | 10 | 4.10% |
Functions | 61 | |
▷ Named functions | 58 | 95.08% |
▷ Anonymous functions | 3 | 4.92% |
Constants | 19 | |
▷ Global constants | 17 | 89.47% |
▷ Class constants | 2 | 10.53% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/vendor/customizer-extra/assets/img/header-1.png | 3.66KB | 2.11KB | ▼ 42.27% |
inc/vendor/customizer-extra/assets/img/footer-1.png | 4.02KB | 2.29KB | ▼ 42.96% |