63% levelup

Code Review | AMP Designs for Elementor by LevelUP

WordPress plugin AMP Designs for Elementor by LevelUP scored63%from 54 tests.

About plugin

  • Plugin page: levelup
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.0.3
  • WordPress version: 6.3.1
  • First release: Sep 15, 2018
  • Latest release: May 26, 2021
  • Number of updates: 9
  • Update frequency: every 109.4 days
  • Top authors: mohammed_kaludi (88.89%)ansaritalha (22.22%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,712 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /4.52 ▲1.0660.35 ▲19.98
Dashboard /wp-admin4.42 ▲1.0758.02 ▼9.28
Posts /wp-admin/edit.php4.59 ▲1.2358.87 ▲9.54
Add New Post /wp-admin/post-new.php7.12 ▲1.24102.87 ▲13.06
Media Library /wp-admin/upload.php4.34 ▲1.1150.76 ▲16.77
Settings /wp-admin/admin.php?page=levelup4.2941.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,995 ▲24913.65 ▼0.9112.24 ▲10.4145.50 ▼1.17
Dashboard /wp-admin2,297 ▲945.90 ▼0.04100.72 ▼18.3546.14 ▲2.15
Posts /wp-admin/edit.php2,174 ▲742.16 ▲0.1744.28 ▲6.6235.05 ▲1.40
Add New Post /wp-admin/post-new.php1,617 ▲9123.14 ▲5.47679.21 ▲32.9558.11 ▲1.19
Media Library /wp-admin/upload.php1,476 ▲734.20 ▼0.0399.20 ▼3.6544.39 ▼1.20
Settings /wp-admin/admin.php?page=levelup1,0182.4131.2345.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

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:
LanguageFilesBlank linesComment linesLines of code
CSS92031247,785
PHP609531,4366,920
JavaScript124392493,838
SVG1002,671
JSON1001

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 code0.34
Average class complexity10.94
▷ Minimum class complexity1.00
▷ Maximum class complexity113.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces10
Interfaces0
Traits0
Classes47
▷ Abstract classes00.00%
▷ Concrete classes47100.00%
▷ Final classes00.00%
Methods244
▷ Static methods41.64%
▷ Public methods21788.93%
▷ Protected methods176.97%
▷ Private methods104.10%
Functions61
▷ Named functions5895.08%
▷ Anonymous functions34.92%
Constants19
▷ Global constants1789.47%
▷ Class constants210.53%
▷ Public constants2100.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
FileSize - originalSize - compressedSavings
inc/vendor/customizer-extra/assets/img/header-1.png3.66KB2.11KB▼ 42.27%
inc/vendor/customizer-extra/assets/img/footer-1.png4.02KB2.29KB▼ 42.96%