83% quick-coming-soon

Code Review | Quick Coming Soon

WordPress plugin Quick Coming Soon scored 83% from 54 tests.

About plugin

  • Plugin page: quick-coming-soon
  • Plugin version: 2.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7.2
  • WordPress version: 5.8.1
  • First release: Nov 3, 2015
  • Latest release: Jun 24, 2021
  • Number of updates: 27
  • Update frequency: every 76.3 days
  • Top authors: emtiaz51921 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 2,342 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.04MB] [CPU: ▼139.28ms] Passed 4 tests

Server-side resources used by Quick Coming Soon
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0144.81 ▲1.07
Dashboard /wp-admin3.17 ▲0.1254.69 ▲2.74
Posts /wp-admin/edit.php3.22 ▲0.1156.38 ▲4.45
Add New Post /wp-admin/post-new.php5.44 ▲0.0198.58 ▼565.37
Media Library /wp-admin/upload.php3.03 ▲0.0341.93 ▲5.51
Quick Coming Soon /wp-admin/options-general.php?page=quick_coming_soon3.0341.10

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 1 new option
New WordPress options
qcs_basic

Browser metrics Passed 4 tests

A check of browser resources used by Quick Coming Soon
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,926 ▲35417.92 ▲2.3710.73 ▲2.3055.81 ▼1.69
Dashboard /wp-admin3,187 ▲2568.32 ▲2.39193.22 ▲42.75138.30 ▲17.09
Posts /wp-admin/edit.php2,988 ▲2494.37 ▲1.6591.18 ▲19.0799.82 ▼0.47
Add New Post /wp-admin/post-new.php1,705 ▲2216.06 ▼2.59403.49 ▼9.08131.97 ▲9.58
Media Library /wp-admin/upload.php1,837 ▲304.92 ▼0.14119.19 ▼34.33128.99 ▼2.79
Quick Coming Soon /wp-admin/options-general.php?page=quick_coming_soon1,3974.1496.8286.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 1 option
    • qcs_basic

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/quick-coming-soon/quick-coming-soon.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (How this will look), #2 (Setting Page)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === quick-coming-soon === )
The official readme.txt is a good inspiration

quick-coming-soon/main.php 92% from 13 tests

Analyzing the main PHP file in "Quick Coming Soon" version 2.0.4
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("quick-coming-soon.php" instead of "main.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
No dangerous file extensions were detected788 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6155191565
CSS1293223

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity19.33
▷ Minimum class complexity3.00
▷ Maximum class complexity49.00
Average method complexity2.34
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods41
▷ Static methods00.00%
▷ Public methods41100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 1.15MB with 0.73MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/social.png7.62KB3.81KB▼ 49.96%
screenshot-2.png91.90KB28.02KB▼ 69.51%
screenshot-1.png1,080.45KB320.86KB▼ 70.30%