84% wpem-divi-elements

Code Review | WPEM - Divi Elements

WordPress plugin WPEM - Divi Elements scored84%from 54 tests.

About plugin

  • Plugin page: wpem-divi-elements
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.0
  • WordPress version: 6.3.1
  • First release: Jun 30, 2021
  • Latest release: Aug 23, 2022
  • Number of updates: 9
  • Update frequency: every 46.7 days
  • Top authors: wpeventmanager (77.78%)hiteshmakvana (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /3,613 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by WPEM - Divi Elements
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.21 ▼8.56
Dashboard /wp-admin3.32 ▲0.0146.44 ▼5.99
Posts /wp-admin/edit.php3.37 ▲0.0146.62 ▼6.27
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.70 ▼12.28
Media Library /wp-admin/upload.php3.24 ▲0.0135.04 ▼0.33

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WPEM - Divi Elements
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.101.72 ▼0.5944.13 ▲1.11
Dashboard /wp-admin2,206 ▲155.81 ▲0.94101.53 ▼3.4339.43 ▼1.85
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0538.18 ▲0.0133.38 ▼1.28
Add New Post /wp-admin/post-new.php1,534 ▲1523.13 ▼0.22663.79 ▲40.8651.06 ▼6.39
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0298.84 ▼5.3542.91 ▼1.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
Please fix the following
  • 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/wpem-divi-elements/includes/modules/SubmitVenueForm/SubmitVenueForm.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/wpem-divi-elements/includes/modules/UpcomingEventListing/UpcomingEventListing.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/wpem-divi-elements/includes/modules/EventSummary/EventSummary.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/wpem-divi-elements/includes/modules/SubmitOrganizerForm/SubmitOrganizerForm.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/wpem-divi-elements/includes/modules/SingleVenue/SingleVenue.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/wpem-divi-elements/includes/modules/EventVenues/EventVenues.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/wpem-divi-elements/includes/modules/VenueDashboard/VenueDashboard.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/wpem-divi-elements/includes/modules/EventListing/EventListing.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/wpem-divi-elements/includes/modules/PastEventListing/PastEventListing.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/wpem-divi-elements/includes/modules/EventDashboard/EventDashboard.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 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
No plugin tags provided

wpem-divi-elements/wpem-divi-elements.php 85% from 13 tests

The primary PHP file in "WPEM - Divi Elements" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 157 characters long)

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 plugin20,692 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
JSON30019,181
PHP182521231,273
JSX166622157
JavaScript65344
CSS26037

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.82
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.26
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods53
▷ Static methods11.89%
▷ Public methods53100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin