84% coming-soon-with-divi-soon

Code Review | Coming Soon With Divi Soon

WordPress plugin Coming Soon With Divi Soon scored 84% from 53 tests.

About plugin

  • Plugin page: coming-soon-with-...
  • Plugin version: 3.3.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7.1
  • WordPress version: 5.8.1
  • First release: Apr 20, 2021
  • Latest release: Apr 21, 2021
  • Number of updates: 11
  • Update frequency: every 6.3 days
  • Top authors: James Fosker (100%)

Code review

53 tests

User reviews

1 review

Install metrics

100+ active / 1,424 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼268.26ms] Passed 4 tests

Analyzing server-side resources used by Coming Soon With Divi Soon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1626.61 ▲8.54
Dashboard /wp-admin3.10 ▲0.0549.12 ▲13.11
Posts /wp-admin/edit.php3.21 ▲0.1141.19 ▼1.72
Add New Post /wp-admin/post-new.php5.46 ▲0.0493.64 ▼1,071.63
Media Library /wp-admin/upload.php3.04 ▲0.0429.47 ▼8.23
Divi Soon /wp-admin/customize.php?autofocus[section]=divi_soon_section6.63177.97

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 2 new options
New WordPress options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Coming Soon With Divi Soon
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,651 ▲6915.95 ▼0.047.35 ▲0.3144.94 ▼4.01
Dashboard /wp-admin2,932 ▲826.00 ▲0.14134.30 ▼6.88100.65 ▼0.81
Posts /wp-admin/edit.php2,708 ▲52.70 ▼0.0067.07 ▼2.3883.95 ▼6.07
Add New Post /wp-admin/post-new.php1,655 ▼19618.69 ▲1.13349.92 ▼3.60112.97 ▲0.93
Media Library /wp-admin/upload.php1,771 ▼44.98 ▼0.03142.37 ▼22.75108.63 ▼1.07
Divi Soon /wp-admin/customize.php?autofocus[section]=divi_soon_section8,09820.61560.47258.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 2 options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coming-soon-with-divi-soon/includes/custom-controls.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coming-soon-with-divi-soon/includes/custom-controls.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coming-soon-with-divi-soon/includes/custom-controls.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (The Divi Soon setting customizer panel) image not found
The official readme.txt is a good inspiration

coming-soon-with-divi-soon/divisoon.php 92% from 13 tests

Analyzing the main PHP file in "Coming Soon With Divi Soon" version 3.3.1
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("coming-soon-with-divi-soon.php" instead of "divisoon.php")

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
Everything looks great! No dangerous files found in this plugin314 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3279225
CSS37289

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity1.17
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected