77% woo-divi

Code Review | Woo-Divi

WordPress plugin Woo-Divi scored77%from 54 tests.

About plugin

  • Plugin page: woo-divi
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 1, 2016
  • Latest release: Nov 15, 2016
  • Number of updates: 5
  • Update frequency: every 30.0 days
  • Top authors: vishalbasnet23 (80%)codepixelzmedia (40%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /4,001 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.54ms] Passed 4 tests

A check of server-side resources used by Woo-Divi
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.90 ▼2.57
Dashboard /wp-admin3.31 ▼0.0449.09 ▼18.34
Posts /wp-admin/edit.php3.36 ▲0.0050.63 ▼0.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.75 ▼6.88
Media Library /wp-admin/upload.php3.23 ▲0.0036.17 ▼2.35

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Woo-Divi: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.27 ▼1.414.79 ▲2.9545.90 ▲2.11
Dashboard /wp-admin2,224 ▲214.84 ▼0.23106.72 ▼7.6842.27 ▲3.71
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0138.85 ▼1.3035.24 ▼2.73
Add New Post /wp-admin/post-new.php1,532 ▼821.13 ▲2.94722.05 ▲83.4570.06 ▲16.64
Media Library /wp-admin/upload.php1,400 ▲34.28 ▼0.03101.19 ▼1.0744.91 ▼2.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/woo-divi/public/partials/woodivi-public-display.php
    • > /wp-content/plugins/woo-divi/admin/partials/woodivi-admin-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/woo-divi/admin/class-woodivi-custom-module.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Requires at least: Invalid version format
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === woo-divi === )
The official readme.txt is a good inspiration

woo-divi/woodivi.php 85% from 13 tests

"Woo-Divi" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-divi.php" instead of "woodivi.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin855 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP13126535447
CSS218384
JavaScript245422
Markdown1002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin