84% widgetify-divi-layouts

Code Review | Widgetify Divi Layouts

WordPress plugin Widgetify Divi Layouts scored84%from 54 tests.

About plugin

  • Plugin page: widgetify-divi-la...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 6.3.1
  • First release: Oct 9, 2016
  • Latest release: Oct 15, 2016
  • Number of updates: 7
  • Update frequency: every 0.7 days
  • Top authors: s3rgiosan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,974 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼9.60ms] Passed 4 tests

A check of server-side resources used by Widgetify Divi Layouts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.41 ▼2.28
Dashboard /wp-admin3.38 ▲0.0351.70 ▼15.36
Posts /wp-admin/edit.php3.49 ▲0.1346.00 ▼7.82
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.16 ▼12.92
Media Library /wp-admin/upload.php3.30 ▲0.0736.99 ▲0.11

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_widgetify-divi-layouts-layout
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Widgetify Divi Layouts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1714.24 ▼0.021.92 ▼0.3143.40 ▼14.51
Dashboard /wp-admin2,198 ▲185.64 ▼0.0484.12 ▼5.1237.15 ▼11.21
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0433.81 ▼5.0534.03 ▼3.50
Add New Post /wp-admin/post-new.php1,528 ▲223.21 ▼0.25677.36 ▼18.2661.44 ▲5.66
Media Library /wp-admin/upload.php1,403 ▲64.17 ▼0.02101.02 ▲3.5443.64 ▲1.82

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
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_widgetify-divi-layouts-layout
    • widget_recent-comments
    • db_upgraded

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
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widgetify-divi-layouts/lib/Widgets/Layout.php:24

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

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: widget, section, library, elegant themes, divi...

widgetify-divi-layouts/widgetify-divi-layouts.php Passed 13 tests

Analyzing the main PHP file in "Widgetify Divi Layouts" version 1.0.3
69 characters long description:
Use your favorite Divi layouts, sections, rows or modules as widgets.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected492 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP12109331453
Markdown111022
XML15216
JSON1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity9.83
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods33
▷ Static methods39.09%
▷ Public methods3193.94%
▷ Protected methods00.00%
▷ Private methods26.06%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
PNG images were not found in this plugin