84% hiecor-divi-modules

Code Review | HieCOR Divi Modules Plugin

WordPress plugin HieCOR Divi Modules Plugin scored84%from 54 tests.

About plugin

  • Plugin page: hiecor-divi-modules
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.5-6.0
  • WordPress version: 6.3.1
  • First release: Apr 28, 2020
  • Latest release: May 30, 2022
  • Number of updates: 10
  • Update frequency: every 76.7 days
  • Top authors: hiecor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /781 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.00MB] [CPU: ▼6.87ms] Passed 4 tests

A check of server-side resources used by HieCOR Divi Modules Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.98 ▼2.46
Dashboard /wp-admin3.31 ▲0.0144.74 ▼3.64
Posts /wp-admin/edit.php3.36 ▲0.0048.59 ▲3.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.13 ▼18.46
Media Library /wp-admin/upload.php3.24 ▲0.0032.32 ▼2.90

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for HieCOR Divi Modules Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.561.68 ▼0.0639.93 ▼1.18
Dashboard /wp-admin2,195 ▲175.61 ▼0.0290.55 ▼14.1542.20 ▲1.44
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0339.79 ▲0.2437.29 ▼2.02
Add New Post /wp-admin/post-new.php1,526 ▼223.14 ▼0.15675.02 ▲22.1658.55 ▼9.13
Media Library /wp-admin/upload.php1,400 ▲34.17 ▼0.07100.76 ▲0.7346.78 ▲5.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/hiecor-divi-modules/includes/modules/NewsletterSignUp/NewsletterSignUp.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/hiecor-divi-modules/includes/HiecorDiviModules.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hiecor-divi-modules/hiecor-divi-modules.php:38

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 96% from 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
1 plugin tags: hiecor divi modules

hiecor-divi-modules/hiecor-divi-modules.php 92% from 13 tests

The entry point to "HieCOR Divi Modules Plugin" version 1.0.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected237 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP43258171
JSX111233
CSS36023
JavaScript54310

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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 were not PNG files found in your plugin