83% perfect-coming-soon-page

Code Review | Perfect Coming Soon Page

WordPress plugin Perfect Coming Soon Page scored83%from 54 tests.

About plugin

  • Plugin page: perfect-coming-so...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.1-5.7
  • WordPress version: 6.3.1
  • First release: Dec 22, 2017
  • Latest release: Jun 11, 2021
  • Number of updates: 7
  • Update frequency: every 181.0 days
  • Top authors: paramsheoran (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /9,565 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.55ms] Passed 4 tests

An overview of server-side resources used by Perfect Coming Soon Page
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.20 ▼2.19
Dashboard /wp-admin3.33 ▲0.0246.08 ▼8.47
Posts /wp-admin/edit.php3.38 ▲0.0252.22 ▲0.23
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.89 ▼11.78
Media Library /wp-admin/upload.php3.25 ▲0.0237.33 ▲0.77
Perfect Coming Soon Page /wp-admin/options-general.php?page=perfect-coming-soon3.2136.51

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options
title_main_heading
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
pcsp_bg_image_url
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Perfect Coming Soon Page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.37 ▲0.211.67 ▼0.1245.67 ▲6.19
Dashboard /wp-admin2,199 ▲225.66 ▲0.0692.66 ▲2.8437.74 ▼8.04
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0141.67 ▲4.1038.14 ▲0.65
Add New Post /wp-admin/post-new.php1,553 ▲1723.33 ▼0.22677.34 ▲43.0262.53 ▲10.25
Media Library /wp-admin/upload.php1,404 ▲14.21 ▲0.00105.13 ▼3.7149.36 ▲5.02
Perfect Coming Soon Page /wp-admin/options-general.php?page=perfect-coming-soon8922.1425.2231.74

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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: 8 options
    • widget_theysaidso_widget
    • title_main_heading
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • pcsp_bg_image_url
    • can_compress_scripts
    • theysaidso_admin_options

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/perfect-coming-soon-page/templates/template-coming-soon-page.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === perfect-coming-soon-page === )
  • Screenshots: Add descriptions for screenshots #1, #2, #3 in perfect-coming-soon-page/assets to your readme.txt
You can look at the official readme.txt

perfect-coming-soon-page/perfect-coming-soon-page.php 92% from 13 tests

The main PHP script in "Perfect Coming Soon Page" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 160 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin508 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1810374
PHP22911134

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png1.60KB0.86KB▼ 46.16%
images/twitter.png0.60KB0.58KB▼ 2.94%
images/facebook.png0.45KB0.43KB▼ 4.55%
images/rss.png0.78KB0.86KB0.00%
images/gpluse.png0.74KB0.80KB0.00%