84% awesome-coming-soon

Code Review | Awesome Coming Soon

WordPress plugin Awesome Coming Soon scored84%from 54 tests.

About plugin

  • Plugin page: awesome-coming-soon
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8.1
  • WordPress version: 6.3.1
  • First release: Jun 28, 2015
  • Latest release: Oct 20, 2021
  • Number of updates: 12
  • Update frequency: every 192.2 days
  • Top authors: iamaliiraja (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /7,308 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.16MB] [CPU: ▼9.22ms] Passed 4 tests

An overview of server-side resources used by Awesome Coming Soon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.73 ▼0.7312.17 ▼26.32
Dashboard /wp-admin3.34 ▲0.0448.07 ▲1.41
Posts /wp-admin/edit.php3.43 ▲0.0751.22 ▲1.57
Add New Post /wp-admin/post-new.php5.92 ▲0.0378.67 ▼10.39
Media Library /wp-admin/upload.php3.24 ▲0.0235.55 ▼1.56

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Awesome Coming Soon
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,982 ▲24714.80 ▲0.051.91 ▲0.2041.74 ▼5.50
Dashboard /wp-admin2,360 ▲1726.45 ▲1.54134.77 ▲23.5040.07 ▼0.61
Posts /wp-admin/edit.php2,266 ▲1773.42 ▲1.4354.83 ▲9.5534.35 ▼0.79
Add New Post /wp-admin/post-new.php1,531 ▲1723.10 ▲5.69643.13 ▼11.2734.07 ▼26.77
Media Library /wp-admin/upload.php1,405 ▲174.16 ▼0.0482.55 ▼12.3741.37 ▼0.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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)
Even though no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-coming-soon/inc/acs-plugin-options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-coming-soon/inc/acs-plugin-options.php:3

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 Passed 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
3 plugin tags: comingsoon, mantaince mode, landing page

awesome-coming-soon/awesome-coming-soon.php Passed 13 tests

The principal PHP file in "Awesome Coming Soon" v. 1.1 is loaded by WordPress automatically on each request
26 characters long description:
Flat Coming Soon WP Plugin

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
There were no executable files found in this plugin2,863 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS382501,866
SVG100504
PHP325247434
JavaScript2202159

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
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
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/images/ico/favicon.png0.88KB0.36KB▼ 59.18%
inc/images/bg-transparent.png0.20KB0.09KB▼ 51.98%
inc/images/ico/apple-touch-icon-144.png2.69KB1.01KB▼ 62.28%
inc/images/ico/apple-touch-icon-57.png1.25KB0.56KB▼ 55.09%
inc/images/ico/apple-touch-icon-72.png1.51KB0.67KB▼ 55.46%