67% coming-soon-by-supsystic

Code Review | Maintenance Mode by Supsystic

WordPress plugin Maintenance Mode by Supsystic scored67%from 54 tests.

About plugin

  • Plugin page: coming-soon-by-su...
  • Plugin version: 1.7.13
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 8, 2015
  • Latest release: Jul 26, 2023
  • Number of updates: 97
  • Update frequency: every 29.7 days
  • Top authors: supsystic.com (100%)

Code review

54 tests

User reviews

57 reviews

Install metrics

2,000+ active /234,574 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲1.89MB] [CPU: ▲9.57ms] Passed 4 tests

This is a short check of server-side resources used by Maintenance Mode by Supsystic
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.36 ▲1.9054.95 ▲17.10
Dashboard /wp-admin5.19 ▲1.8959.79 ▲15.34
Posts /wp-admin/edit.php5.30 ▲1.9560.98 ▲14.03
Add New Post /wp-admin/post-new.php7.77 ▲1.89100.43 ▼8.20
Media Library /wp-admin/upload.php5.11 ▲1.8953.88 ▲21.48
Maintenance Mode by Supsystic /wp-admin/admin.php?page=coming-soon-supsystic5.3745.62
Overview /wp-admin/admin.php?page=coming-soon-supsystic&tab=overview5.2545.42

Server storage [IO: ▲3.98MB] [DB: ▲0.04MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 453 new files
Database: 7 new tables, 9 new options
New tables
wp_scs_modules_type
wp_scs_usage_stat
wp_scs_octo
wp_scs_subscribers
wp_scs_modules
wp_scs_octo_blocks_categories
wp_scs_octo_blocks
New WordPress options
wp_scs_db_version
scs_plugin_activation_errors
widget_theysaidso_widget
wp_scs_db_installed
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Maintenance Mode by Supsystic: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲8113.23 ▼1.151.99 ▼0.0641.56 ▲0.49
Dashboard /wp-admin2,237 ▲495.87 ▼0.10108.02 ▲7.9543.01 ▼1.74
Posts /wp-admin/edit.php2,120 ▲312.01 ▲0.0138.68 ▲5.9533.98 ▲2.08
Add New Post /wp-admin/post-new.php1,555 ▲1723.09 ▼0.11655.86 ▼6.4155.01 ▼5.38
Media Library /wp-admin/upload.php1,419 ▲374.20 ▼0.0994.39 ▼7.3240.24 ▼2.67
Maintenance Mode by Supsystic /wp-admin/admin.php?page=coming-soon-supsystic1,6352.8778.2480.88
Overview /wp-admin/admin.php?page=coming-soon-supsystic&tab=overview2,62323.06532.3274.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 4 tables in the database
    • wp_scs_octo_blocks_categories
    • wp_scs_octo
    • wp_scs_subscribers
    • wp_scs_octo_blocks
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • scs_plugin_activation_errors

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/coming-soon-by-supsystic/modules/supsystic_promo/views/tpl/adminFooter.php
  • 209× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/coming-soon-by-supsystic/classes/Twig/Node/Expression/Array.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Twig_CompilerInterface' not found in wp-content/plugins/coming-soon-by-supsystic/classes/Twig/Compiler.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Expression_Test' not found in wp-content/plugins/coming-soon-by-supsystic/classes/Twig/Node/Expression/Test/Constant.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Expression_Test' not found in wp-content/plugins/coming-soon-by-supsystic/classes/Twig/Node/Expression/Test/Even.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'modelScs' not found in wp-content/plugins/coming-soon-by-supsystic/modules/options/models/options.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/coming-soon-by-supsystic/classes/Twig/Node/Expression/Binary/Div.php:12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/coming-soon-by-supsystic/modules/octo/views/tpl/octoCommonFooter.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/coming-soon-by-supsystic/classes/Twig/Node/Expression/Constant.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'modelScs' not found in wp-content/plugins/coming-soon-by-supsystic/modules/octo/models/octo_blocks.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/coming-soon-by-supsystic/classes/Twig/Node/Expression/Unary.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Add a description for screenshot #5 in coming-soon-by-supsystic/assets to your readme.txt
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
The official readme.txt might help

coming-soon-by-supsystic/scs.php 85% from 13 tests

The primary PHP file in "Maintenance Mode by Supsystic" version 1.7.13 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("coming-soon-by-supsystic.php" instead of "scs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected44,707 lines of code in 350 files:
LanguageFilesBlank linesComment linesLines of code
PHP2572,2006,44619,422
JavaScript481,9301,81416,184
CSS372664885,702
PO File51,1391,6173,272
SVG200125
Markdown1102

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity12.91
▷ Minimum class complexity1.00
▷ Maximum class complexity192.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces0
Interfaces19
Traits0
Classes214
▷ Abstract classes198.88%
▷ Concrete classes19591.12%
▷ Final classes00.00%
Methods1,533
▷ Static methods24315.85%
▷ Public methods1,34988.00%
▷ Protected methods1479.59%
▷ Private methods372.41%
Functions78
▷ Named functions78100.00%
▷ Anonymous functions00.00%
Constants115
▷ Global constants6556.52%
▷ Class constants5043.48%
▷ Public constants50100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
68 PNG files occupy 0.42MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/prettyphoto/images/prettyPhoto/dark_square/sprite.png3.42KB2.13KB▼ 37.67%
modules/octo/css/images/minimal.png2.65KB1.21KB▼ 54.19%
css/images/minimal.png2.23KB1.44KB▼ 35.45%
js/jquery.context-menu/images/page_white_paste.png0.61KB0.67KB0.00%
js/prettyphoto/images/prettyPhoto/light_rounded/btnNext.png1.38KB1.14KB▼ 17.29%