90% mc-divi-title-module

Code Review | Divi Title Module

WordPress plugin Divi Title Module scored 90% from 54 tests.

About plugin

  • Plugin page: mc-divi-title-module
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.4
  • WordPress version: 6.3.1
  • First release: Oct 3, 2017
  • Latest release: Apr 8, 2020
  • Number of updates: 13
  • Update frequency: every 70.6 days
  • Top authors: Chaton666 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 4,099 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.36ms] Passed 4 tests

Analyzing server-side resources used by Divi Title Module
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.88 ▼5.31
Dashboard /wp-admin3.33 ▲0.0247.68 ▼2.93
Posts /wp-admin/edit.php3.38 ▲0.0249.56 ▲2.44
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.81 ▼9.97
Media Library /wp-admin/upload.php3.25 ▲0.0235.41 ▼3.23

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Divi Title Module
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.134.77 ▲3.0843.56 ▼1.95
Dashboard /wp-admin2,206 ▲174.85 ▼0.07101.21 ▼11.4637.12 ▼2.86
Posts /wp-admin/edit.php2,089 ▲112.01 ▲0.0336.47 ▼1.6931.55 ▼12.64
Add New Post /wp-admin/post-new.php1,533 ▼923.13 ▲4.99582.59 ▼73.3056.73 ▼27.44
Media Library /wp-admin/upload.php1,391 ▼04.22 ▲0.1195.54 ▼11.8441.05 ▼5.37

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: divi module, adopt-me, divi title, divi builder, divi

mc-divi-title-module/mc-divi-title-module.php Passed 13 tests

The primary PHP file in "Divi Title Module" version 1.0.2 is used by WordPress to initiate all plugin functionality
123 characters long description:
This plugin adds a new module to the Divi builder, it allows to easily insert titles without going through the text module.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected366 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File493111255
PHP11517111

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.10
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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