84% coming-soon-counter-page-maintenance-mode-lacoming-soon

Code Review | Coming Soon Counter Page / Maintenance Mode - Lacoming Soon

WordPress plugin Coming Soon Counter Page / Maintenance Mode - Lacoming Soon scored84%from 54 tests.

About plugin

  • Plugin page: coming-soon-count...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Jan 27, 2023
  • Latest release: Jan 27, 2023
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: thekrishna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /507 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.38MB] [CPU: ▲3.61ms] Passed 4 tests

This is a short check of server-side resources used by Coming Soon Counter Page / Maintenance Mode - Lacoming Soon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.3642.93 ▲2.78
Dashboard /wp-admin3.76 ▲0.4350.95 ▲2.47
Posts /wp-admin/edit.php3.82 ▲0.4356.48 ▲8.67
Add New Post /wp-admin/post-new.php6.28 ▲0.36109.68 ▲8.51
Media Library /wp-admin/upload.php3.62 ▲0.3639.36 ▲0.67

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: no files
Database: no new tables, 51 new options
New WordPress options
lasoon_back_image_for_email
lasoon_back_3_image
twitter_social_link
youtube_social_link
lasoon_button_text_for_email
lasoon_logo
lasoon_heading_animation
widget_recent-posts
lasoon_meta_robot
lasoon_back_2_image
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Coming Soon Counter Page / Maintenance Mode - Lacoming Soon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,984 ▲23815.30 ▲0.651.68 ▲0.0344.65 ▼0.11
Dashboard /wp-admin2,375 ▲1847.04 ▲2.15143.55 ▲34.3891.05 ▲51.72
Posts /wp-admin/edit.php2,296 ▲2073.41 ▲1.3660.99 ▲26.2867.47 ▲32.14
Add New Post /wp-admin/post-new.php1,554 ▲2023.33 ▲0.02627.38 ▼54.4299.99 ▲34.78
Media Library /wp-admin/upload.php1,429 ▲414.61 ▲0.3985.13 ▼28.1267.99 ▲20.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 51 options
    • lasoon_heading_subtitle_for_email
    • lasoon_sidebar
    • lasoon_git_address
    • lasoon_subtitle_enable
    • lasoon_git_show
    • lasoon_about_head
    • linkedin_social_link
    • lasoon_heading_subtitle
    • lasoon_git_head
    • lasoon_about_show
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Lasoon_Admin_Settings' not found in wp-content/plugins/coming-soon-counter-page-maintenance-mode-lacoming-soon/admin/main-lasoon.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coming-soon-counter-page-maintenance-mode-lacoming-soon/admin/lasoon-admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/coming-soon-counter-page-maintenance-mode-lacoming-soon/public/class-lasoon-public.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/coming-soon-counter-page-maintenance-mode-lacoming-soon/public/coming-soon.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% 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
5 plugin tags: maintenance mode, coming soon, launch page, coming soon page, under construction

coming-soon-counter-page-maintenance-mode-lacoming-soon/lasoon-maintenance.php 85% from 13 tests

"Coming Soon Counter Page / Maintenance Mode - Lacoming Soon" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("coming-soon-counter-page-maintenance-mode-lacoming-soon.php" instead of "lasoon-maintenance.php")

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
Everything looks great! No dangerous files found in this plugin8,120 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
CSS3153323,585
PHP143424322,001
JavaScript13140691,996
PO File1226254474
SVG150064

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity26.00
▷ Minimum class complexity1.00
▷ Maximum class complexity114.00
Average method complexity5.42
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
Methods39
▷ Static methods1128.21%
▷ Public methods3179.49%
▷ Protected methods820.51%
▷ Private methods00.00%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 compressed PNG files occupy 2.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/assets/images/logo.png3.46KB1.89KB▼ 45.50%
public/assets/images/cloud-2.png311.44KB337.81KB0.00%
public/assets/images/cloud-1.png750.87KB833.75KB0.00%
public/assets/images/cloud-4.png176.97KB176.66KB0.17%
public/assets/images/cloud-3.png828.02KB913.55KB0.00%