83% bw-coming-soon-page

Code Review | Coming soon Page

WordPress plugin Coming soon Page scored83%from 54 tests.

About plugin

  • Plugin page: bw-coming-soon-page
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: May 11, 2021
  • Latest release: Oct 12, 2023
  • Number of updates: 10
  • Update frequency: every 88.4 days
  • Top authors: niaj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,492 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.29MB] [CPU: ▼3.22ms] Passed 4 tests

An overview of server-side resources used by Coming soon Page
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3138.68 ▲1.21
Dashboard /wp-admin3.63 ▲0.3245.78 ▼2.60
Posts /wp-admin/edit.php3.68 ▲0.3245.68 ▼0.15
Add New Post /wp-admin/post-new.php6.15 ▲0.2682.70 ▼11.33
Media Library /wp-admin/upload.php3.49 ▲0.2538.19 ▲3.51
BW Coming Soon Page /wp-admin/options-general.php?page=bwcs_page3.4737.72

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

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

Browser metrics Passed 4 tests

Coming soon Page: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.17 ▼0.191.77 ▲0.2637.72 ▼2.32
Dashboard /wp-admin2,223 ▲435.63 ▼0.0385.29 ▼4.9443.60 ▲4.45
Posts /wp-admin/edit.php2,126 ▲232.08 ▲0.0935.42 ▲0.2633.61 ▼2.42
Add New Post /wp-admin/post-new.php1,553 ▲2523.27 ▲0.15676.06 ▲7.0050.70 ▼11.40
Media Library /wp-admin/upload.php1,425 ▲254.16 ▲0.00101.89 ▲4.7043.60 ▲0.80
BW Coming Soon Page /wp-admin/options-general.php?page=bwcs_page9162.0428.0329.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • 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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bw-coming-soon-page/admin/settings-page.php:7
    • > PHP Warning
      require_once(wp-content/plugins/bw-coming-soon-page/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/bw-coming-soon-page/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/bw-coming-soon-page/admin/form.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bw-coming-soon-page/includes/plugin-settings.php:66
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/bw-coming-soon-page/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/bw-coming-soon-page/vendor/appsero/client/.php-cs-fixer.dist.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: maintainance mode, maintainance, coming-soon, wordpress-coming-soon

bw-coming-soon-page/bw-coming-soon-page.php 77% from 13 tests

The main file in "Coming soon Page" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected2,910 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP216749632,452
Markdown1820255
JSON200108
XML161195

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity33.33
▷ Minimum class complexity1.00
▷ Maximum class complexity84.00
Average method complexity3.16
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods136
▷ Static methods1913.97%
▷ Public methods10073.53%
▷ Protected methods64.41%
▷ Private methods3022.06%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin