77% coming-soon-by-boomdevs

Code Review | BoomDevs WordPress Coming Soon Plugin

WordPress plugin BoomDevs WordPress Coming Soon Plugin scored77%from 54 tests.

About plugin

  • Plugin page: coming-soon-by-bo...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 24, 2022
  • Latest release: Aug 10, 2023
  • Number of updates: 21
  • Update frequency: every 25.3 days
  • Top authors: boomdevs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /751 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲1.84MB] [CPU: ▲10.91ms] Passed 4 tests

Analyzing server-side resources used by BoomDevs WordPress Coming Soon Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.32 ▲1.8662.65 ▲21.89
Dashboard /wp-admin5.13 ▲1.8366.76 ▲10.80
Posts /wp-admin/edit.php5.25 ▲1.8962.82 ▲9.33
Add New Post /wp-admin/post-new.php7.73 ▲1.84102.82 ▲1.62
Media Library /wp-admin/upload.php5.06 ▲1.8263.43 ▲28.84

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for BoomDevs WordPress Coming Soon Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲18914.14 ▼0.469.03 ▲6.3353.29 ▲12.10
Dashboard /wp-admin2,213 ▲225.03 ▼0.87102.38 ▲3.1038.85 ▲0.79
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0239.09 ▼1.9832.99 ▼2.50
Add New Post /wp-admin/post-new.php1,527 ▲1318.06 ▲0.65637.33 ▼42.2554.94 ▼5.70
Media Library /wp-admin/upload.php1,395 ▲74.22 ▼0.04101.52 ▼1.1643.54 ▼2.77

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • csts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% 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 0% 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
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/coming-soon-by-boomdevs/public/partials/csts-public-display.php
    • > /wp-content/plugins/coming-soon-by-boomdevs/admin/partials/csts-admin-display.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'CSTS_DIRincludes/class-csts-settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/coming-soon-by-boomdevs/public/template/template.php on line 2
    • > PHP Warning
      require_once(CSTS_DIRincludes/class-csts-settings.php): failed to open stream: No such file or directory in wp-content/plugins/coming-soon-by-boomdevs/public/template/template.php on line 2
    • > PHP Warning
      Use of undefined constant CSTS_DIR - assumed 'CSTS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/coming-soon-by-boomdevs/public/template/template.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention: You can take inspiration from this readme.txt

coming-soon-by-boomdevs/csts-coming-soon.php 77% from 13 tests

"BoomDevs WordPress Coming Soon Plugin" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 156 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("coming-soon-by-boomdevs.php" instead of "csts-coming-soon.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
There were no executable files found in this plugin43,146 lines of code in 178 files:
LanguageFilesBlank linesComment linesLines of code
PHP1144,1293,10918,153
JavaScript111,2955566,587
PO File203,1983,5916,500
CSS115845495,947
Sass1697035,672
Markdown1700196
JSON30089
SVG2002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity24.00
▷ Minimum class complexity1.00
▷ Maximum class complexity153.00
Average method complexity5.34
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes78
▷ Abstract classes22.56%
▷ Concrete classes7697.44%
▷ Final classes00.00%
Methods414
▷ Static methods6515.70%
▷ Public methods37089.37%
▷ Protected methods61.45%
▷ Private methods389.18%
Functions29
▷ Named functions2896.55%
▷ Anonymous functions13.45%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
libs/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%
public/images/logos.png0.81KB0.51KB▼ 37.17%
public/images/cancel.png6.07KB2.47KB▼ 59.33%
public/images/logo.png1.65KB1.56KB▼ 5.45%