67% fat-coming-soon

Code Review | FAT Cooming Soon

WordPress plugin FAT Cooming Soon scored67%from 54 tests.

About plugin

  • Plugin page: fat-coming-soon
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9
  • WordPress version: 6.3.1
  • First release: Jan 21, 2018
  • Latest release: Oct 21, 2019
  • Number of updates: 11
  • Update frequency: every 58.5 days
  • Top authors: roninwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,963 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▲1.13ms] Passed 4 tests

A check of server-side resources used by FAT Cooming Soon
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.1645.35 ▲1.64
Dashboard /wp-admin3.53 ▲0.1855.08 ▲3.26
Posts /wp-admin/edit.php3.64 ▲0.2452.33 ▲5.66
Add New Post /wp-admin/post-new.php6.13 ▲0.2087.84 ▼2.40
Media Library /wp-admin/upload.php3.45 ▲0.1841.33 ▲2.01
Coming soon setting /wp-admin/admin.php?page=fat-coming-soon-setting3.5836.63
Coming soon /wp-admin/admin.php?page=fat-coming-soon3.5835.86

Server storage [IO: ▲3.23MB] [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: 100 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for FAT Cooming Soon
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.39 ▲0.041.78 ▼0.1644.30 ▲2.83
Dashboard /wp-admin2,236 ▲565.62 ▼0.0594.48 ▲0.7738.45 ▼2.76
Posts /wp-admin/edit.php2,138 ▲382.12 ▲0.1437.43 ▼0.1633.76 ▼4.67
Add New Post /wp-admin/post-new.php1,565 ▲3723.31 ▲0.15689.16 ▲13.0551.98 ▼13.28
Media Library /wp-admin/upload.php1,435 ▲354.31 ▲0.0399.50 ▼13.2749.12 ▲0.57
Coming soon setting /wp-admin/admin.php?page=fat-coming-soon-setting12,2657.01282.5442.49
Coming soon /wp-admin/admin.php?page=fat-coming-soon12,2236.97232.1132.66

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=fat-coming-soon
    • > Warning in wp-content/plugins/fat-coming-soon/library/fat-cmb/fields/fat_cmb_select.php+99
    Illegal offset type in isset or empty

SRP 0% 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
Almost there! Just fix the following items
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/fat-coming-soon/library/fat-cmb/fat-cmb.php
    • > /wp-content/plugins/fat-coming-soon/library/fat-cmb/templates/init-field.php
    • > /wp-content/plugins/fat-coming-soon/fat-coming-soon.php
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/fat-coming-soon/assets/css/frontend/custom-css.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fat-coming-soon/templates/header.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fat-coming-soon/page-templates/coming-soon-template.php:9
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/fat-coming-soon/library/fat-cmb/templates/option-page.php:8
    • > PHP Notice
      Undefined variable: fields in wp-content/plugins/fat-coming-soon/library/fat-cmb/templates/init-field.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fat-coming-soon/page-templates/coming-soon-mailchimp-template.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fat-coming-soon/templates/footer.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fat-coming-soon/templates/header-icon.php:9
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/fat-coming-soon/library/fat-cmb/templates/init-field.php on line 12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=fat-coming-soon
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=fat-coming-soon
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=fat-coming-soon
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.clear is deprecated since version 5.5.0! Use wp.i18n instead.
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=fat-coming-soon
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.clearAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: youtube, vimeo, pinterest, twitter, editor...

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

The main file in "FAT Cooming Soon" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
55 characters long description:
Easy create coming soon and maintain mode for your site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected27,045 lines of code in 75 files:
LanguageFilesBlank linesComment linesLines of code
JSON20016,894
SVG1002,671
PHP252802012,651
CSS15248852,480
JavaScript293852762,322
HTML20023
Markdown1204

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity30.24
▷ Minimum class complexity12.00
▷ Maximum class complexity142.00
Average method complexity8.77
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods64
▷ Static methods23.12%
▷ Public methods5281.25%
▷ Protected methods00.00%
▷ Private methods1218.75%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/js/vegas/overlays/09.png0.13KB0.12KB▼ 13.87%
assets/js/vegas/overlays/07.png0.21KB0.10KB▼ 51.63%
assets/js/vegas/overlays/02.png0.21KB0.10KB▼ 53.05%
assets/js/vegas/overlays/05.png0.21KB0.10KB▼ 52.11%
assets/images/dot.png2.74KB0.10KB▼ 96.40%