84% wunderwp

Code Review | WunderWP - Reusable & Preset Widget Styles and Templates for Elementor

WordPress plugin WunderWP - Reusable & Preset Widget Styles and Templates for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: wunderwp
  • Plugin version: 1.6.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Sep 30, 2019
  • Latest release: May 2, 2022
  • Number of updates: 58
  • Update frequency: every 16.9 days
  • Top authors: artbees (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

10,000+ active /150,125 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼12.24ms] Passed 4 tests

Analyzing server-side resources used by WunderWP - Reusable & Preset Widget Styles and Templates for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.51 ▼0.30
Dashboard /wp-admin3.35 ▲0.0144.33 ▼17.89
Posts /wp-admin/edit.php3.46 ▲0.1143.30 ▼4.80
Add New Post /wp-admin/post-new.php5.93 ▲0.0581.19 ▼22.40
Media Library /wp-admin/upload.php3.27 ▲0.0533.13 ▼3.85

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WunderWP - Reusable & Preset Widget Styles and Templates for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.011.71 ▼0.1843.14 ▼0.87
Dashboard /wp-admin2,203 ▲155.79 ▲0.9497.38 ▼8.5339.55 ▼5.32
Posts /wp-admin/edit.php2,089 ▼31.99 ▲0.0034.04 ▼1.3634.93 ▼1.10
Add New Post /wp-admin/post-new.php1,542 ▲2823.30 ▲5.79668.30 ▲14.5356.42 ▲1.16
Media Library /wp-admin/upload.php1,391 ▼04.14 ▼0.0895.77 ▲1.3341.55 ▼4.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/wunderwp/includes/connect/class.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wunderwp/includes/options/class.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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
5 plugin tags: reusable style, premade content, elementor, readymade template, preset

wunderwp/wunderwp.php Passed 13 tests

The primary PHP file in "WunderWP - Reusable & Preset Widget Styles and Templates for Elementor" version 1.6.1 is used by WordPress to initiate all plugin functionality
79 characters long description:
Apply preset styling to Elementor widgets and beautify your content in seconds!

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
Everything looks great! No dangerous files found in this plugin4,526 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript6622481,998
PHP155351,2401,718
CSS121324810

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity11.93
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods123
▷ Static methods1713.82%
▷ Public methods9980.49%
▷ Protected methods64.88%
▷ Private methods1814.63%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/wunderwp_plugin_icon.png2.26KB1.42KB▼ 37.37%