84% elements-plus

Code Review | Elements Plus!

WordPress plugin Elements Plus! scored84%from 54 tests.

About plugin

  • Plugin page: elements-plus
  • Plugin version: 2.16.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 28, 2017
  • Latest release: Jun 19, 2023
  • Number of updates: 224
  • Update frequency: every 9.7 days
  • Top authors: cssigniterteam (79.46%)nvourva (11.61%)anastis (8.93%)tsiger (1.34%)

Code review

54 tests

User reviews

23 reviews

Install metrics

10,000+ active /299,358 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.55ms] Passed 4 tests

This is a short check of server-side resources used by Elements Plus!
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1038.12 ▼1.20
Dashboard /wp-admin3.40 ▲0.1045.51 ▼9.37
Posts /wp-admin/edit.php3.45 ▲0.0948.92 ▲1.52
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.06 ▼1.28
Media Library /wp-admin/upload.php3.33 ▲0.0933.79 ▼2.35

Server storage [IO: ▲4.97MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 106 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Elements Plus!
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲7014.78 ▲0.502.07 ▲0.3242.06 ▼2.38
Dashboard /wp-admin2,214 ▲264.89 ▼0.00109.17 ▼7.1441.72 ▼5.44
Posts /wp-admin/edit.php2,096 ▲102.04 ▲0.0339.09 ▲4.8136.82 ▼1.65
Add New Post /wp-admin/post-new.php1,538 ▲2423.18 ▲5.66577.79 ▼125.7752.54 ▼1.98
Media Library /wp-admin/upload.php1,396 ▲54.36 ▲0.1795.69 ▼1.9344.08 ▼2.69

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/elements-plus/elements/ep-pricing-list.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elements-plus/elements/ep-instagram-filters.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elements-plus/elements/ep-tilt.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elements-plus/elements/ep-tooltip.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/elements-plus/inc/map-styles.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elements-plus/elements/ep-sticky-videos.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/elements-plus/elements/ep-hotspots.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elements-plus/elements/ep-scheduled.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Settings' not found in wp-content/plugins/elements-plus/inc/elements-plus-options.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: custom elements, elements plus, custom widgets, elementor, elementor widgets...

elements-plus/elements-plus.php Passed 13 tests

The principal PHP file in "Elements Plus!" v. 2.16.2 is loaded by WordPress automatically on each request
64 characters long description:
Custom elements for the Elementor page builder by CSSIgniter.com

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin18,763 lines of code in 77 files:
LanguageFilesBlank linesComment linesLines of code
PHP341,43029710,526
CSS21866253,481
JavaScript205132723,373
SVG2001,383

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity7.50
▷ Minimum class complexity2.00
▷ Maximum class complexity19.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes00.00%
Methods190
▷ Static methods73.68%
▷ Public methods11661.05%
▷ Protected methods7338.42%
▷ Private methods10.53%
Functions66
▷ Named functions3248.48%
▷ Anonymous functions3451.52%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/banner.png70.29KB42.12KB▼ 40.08%