84% marketing-with-divi

Code Review | Marketing with Divi

WordPress plugin Marketing with Divi scored84%from 54 tests.

About plugin

  • Plugin page: marketing-with-divi
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.2
  • WordPress version: 6.3.1
  • First release: Jun 28, 2019
  • Latest release: Jun 28, 2019
  • Number of updates: 2
  • Update frequency: every 215.0 days
  • Top authors: stracker.phil (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /721 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.01MB] [CPU: ▼10.40ms] Passed 4 tests

This is a short check of server-side resources used by Marketing with Divi
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.03 ▼3.63
Dashboard /wp-admin3.31 ▼0.0445.67 ▼14.52
Posts /wp-admin/edit.php3.36 ▲0.0046.43 ▼3.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.18 ▼19.47
Media Library /wp-admin/upload.php3.23 ▲0.0039.94 ▲0.96

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Marketing with Divi
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.10 ▼0.471.79 ▼0.0538.16 ▼3.48
Dashboard /wp-admin2,198 ▲275.63 ▲0.1283.39 ▼4.0338.71 ▼5.52
Posts /wp-admin/edit.php2,097 ▼31.95 ▲0.0140.19 ▲2.3038.12 ▼1.22
Add New Post /wp-admin/post-new.php1,526 ▼523.27 ▲0.16655.64 ▼5.5955.42 ▲3.73
Media Library /wp-admin/upload.php1,400 ▼34.23 ▲0.0795.56 ▼8.1043.54 ▼3.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

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
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/marketing-with-divi/includes/MarketingWithDivi.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/marketing-with-divi/includes/modules/Calendar/Calendar.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/marketing-with-divi/marketing-with-divi.php:42

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: marketing, divi

marketing-with-divi/marketing-with-divi.php Passed 13 tests

The primary PHP file in "Marketing with Divi" version 1.0.0 is used by WordPress to initiate all plugin functionality
47 characters long description:
A collection of marketing related Divi modules.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin488 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP439138202
CSS3213173
JavaScript6101257
JSX111555
SVG1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
No PNG files were detected