78% av-coming-soon

Code Review | Coming Soon / Maintenance Mode / Under construction Plugin by AV Themes

WordPress plugin Coming Soon / Maintenance Mode / Under construction Plugin by AV Themes scored 78% from 53 tests.

About plugin

  • Plugin page: av-coming-soon
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.4
  • WordPress version: 5.8.1
  • First release: Jul 11, 2020
  • Latest release: Jul 13, 2020
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: avthemes1 (100%)

Code review

53 tests

User reviews

1 review

Install metrics

30+ active / 273 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼270.46ms] Passed 4 tests

This is a short check of server-side resources used by Coming Soon / Maintenance Mode / Under construction Plugin by AV Themes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.92 ▲0.2041.43 ▲20.88
Dashboard /wp-admin3.15 ▲0.1046.56 ▲1.71
Posts /wp-admin/edit.php3.24 ▲0.1345.22 ▲4.30
Add New Post /wp-admin/post-new.php5.52 ▲0.0992.34 ▼1,086.39
Media Library /wp-admin/upload.php3.09 ▲0.0935.50 ▼1.47
Coming Soon /wp-admin/options-general.php?page=AV_CS_plugin_options3.2336.10

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 48 new files
Database: no new tables, 1 new option
New WordPress options
AV_CS_options

Browser metrics Passed 4 tests

Checking browser requirements for Coming Soon / Maintenance Mode / Under construction Plugin by AV Themes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,754 ▲17215.75 ▲0.199.27 ▲2.0551.53 ▲1.90
Dashboard /wp-admin2,932 ▲795.95 ▼0.09139.84 ▲7.38101.14 ▼3.05
Posts /wp-admin/edit.php2,711 ▲52.69 ▼0.0162.23 ▼1.7583.63 ▼6.42
Add New Post /wp-admin/post-new.php1,484 ▼36918.48 ▼0.73355.56 ▼25.87110.89 ▼4.03
Media Library /wp-admin/upload.php1,803 ▲285.09 ▲0.09154.52 ▼4.90101.91 ▼20.60
Coming Soon /wp-admin/options-general.php?page=AV_CS_plugin_options3,6715.47123.46174.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 1 option
    • AV_CS_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/av-coming-soon/includes/admin/tpl/av-plugins-main.php
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: AV_CS_options in wp-content/plugins/av-coming-soon/includes/front/tpl/header.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/av-coming-soon/includes/front/tpl/header.php:9
    • > PHP Notice
      Undefined variable: notice_type in wp-content/plugins/av-coming-soon/includes/admin/tpl/admin_notice.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/av-coming-soon/includes/admin/init.php:35
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/av-coming-soon/includes/front/tpl/header.php on line 1
    • > PHP Notice
      Undefined variable: av_plugins in wp-content/plugins/av-coming-soon/includes/admin/tpl/av-plugins-main.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/av-coming-soon/includes/front/tpl/header.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_footer() in wp-content/plugins/av-coming-soon/includes/front/tpl/footer.php:2
    • > PHP Notice
      Undefined variable: AV_CS_options in wp-content/plugins/av-coming-soon/includes/front/tpl/header.php on line 1
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/av-coming-soon/includes/admin/tpl/av-plugins-main.php on line 3

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: maintenance mode, coming soon, construction, under development

av-coming-soon/index.php 92% from 13 tests

The main PHP script in "Coming Soon / Maintenance Mode / Under construction Plugin by AV Themes" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("av-coming-soon.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin10,868 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
CSS51,213169,132
PHP17281174908
SVG777729
JavaScript6322199

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.29
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%
Functions25
▷ Named functions2496.00%
▷ Anonymous functions14.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/av_icon_512.png24.09KB8.65KB▼ 64.09%
assets/images/av_icon_64.png2.30KB1.94KB▼ 15.68%
assets/images/av_icon_256.png8.87KB4.36KB▼ 50.88%
assets/images/av_plugins_logo.png1.87KB1.76KB▼ 6.01%
assets/images/av_icon_16.png0.60KB0.77KB0.00%