67% maintenance-mode-arrowplugins

Code Review | Maintenance Mode | Coming soon & Under Construction

WordPress plugin Maintenance Mode | Coming soon & Under Construction scored67%from 54 tests.

About plugin

  • Plugin page: maintenance-mode-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1.1
  • WordPress version: 6.3.1
  • First release: Mar 26, 2019
  • Latest release: Jul 1, 2019
  • Number of updates: 4
  • Update frequency: every 69.5 days
  • Top authors: arrowplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /755 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.77MB] [CPU: ▼30.36ms] Passed 4 tests

Server-side resources used by Maintenance Mode | Coming soon & Under Construction
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0445.37 ▲0.63
Dashboard /wp-admin3.18 ▼0.1330.55 ▼22.59
Posts /wp-admin/edit.php3.18 ▼0.1829.75 ▼23.11
Add New Post /wp-admin/post-new.php3.18 ▼2.7129.13 ▼76.35
Media Library /wp-admin/upload.php3.18 ▼0.0543.69 ▲7.51

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 90 new files
Database: 1 new table, 6 new options
New tables
wp_wp_notification_alert
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Maintenance Mode | Coming soon & Under Construction: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,956 ▲19515.47 ▲0.821.71 ▼0.2845.39 ▲0.85
Dashboard /wp-admin2,362 ▲1827.20 ▲1.46134.20 ▲41.6841.88 ▼0.13
Posts /wp-admin/edit.php2,287 ▲1843.92 ▲1.8756.29 ▲18.0936.04 ▲3.65
Add New Post /wp-admin/post-new.php1,560 ▲1824.02 ▲0.63670.23 ▼3.7937.35 ▼25.18
Media Library /wp-admin/upload.php1,424 ▲245.31 ▲1.05102.24 ▼15.0643.46 ▼4.65

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/maintenance-mode-arrowplugins/includes/mmba-wp-settings-page-by-arrow.php+131
    Undefined index: append_text
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 output text when accessed directly:
    • > /wp-content/plugins/maintenance-mode-arrowplugins/includes/mmba-wp-support-page-by-arrow.php
    • > /wp-content/plugins/maintenance-mode-arrowplugins/themes/default/mmba-wp-default-by-arrow.php
  • 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/maintenance-mode-arrowplugins/includes/mmba-wp-field-types-by-arrow.php on line 109
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/maintenance-mode-arrowplugins/includes/mmba-wp-field-types-by-arrow.php on line 4
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/maintenance-mode-arrowplugins/includes/mmba-wp-field-types-by-arrow.php on line 37
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/maintenance-mode-arrowplugins/includes/mmba-wp-field-types-by-arrow.php on line 76
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/maintenance-mode-arrowplugins/includes/mmba-wp-field-types-by-arrow.php on line 12
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/maintenance-mode-arrowplugins/includes/mmba-wp-field-types-by-arrow.php on line 46
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/maintenance-mode-arrowplugins/includes/mmba-wp-field-types-by-arrow.php on line 60
    • > PHP Warning
      require_once(wordpress/wp-config.php): failed to open stream: No such file or directory in wp-content/plugins/maintenance-mode-arrowplugins/themes/default/mmba-wp-notification-alert-by-arrow.php on line 2
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/maintenance-mode-arrowplugins/includes/mmba-wp-field-types-by-arrow.php on line 68
    • > PHP Fatal error
      require_once(): Failed opening required 'wordpress/wp-config.php' (include_path='.:/usr/share/php') in wp-content/plugins/maintenance-mode-arrowplugins/themes/default/mmba-wp-notification-alert-by-arrow.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Screenshots: No descriptions were found for these screenshots #2, #4, #6 in maintenance-mode-arrowplugins/assets to your readme.txt
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

maintenance-mode-arrowplugins/wp-maintenance-by-arrow.php 92% from 13 tests

The main file in "Maintenance Mode | Coming soon & Under Construction" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("maintenance-mode-arrowplugins.php" instead of "wp-maintenance-by-arrow.php")

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
Good job! No executable or dangerous file extensions detected7,068 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP104791053,931
JavaScript7360782,472
CSS510746665

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity40.50
▷ Minimum class complexity24.00
▷ Maximum class complexity57.00
Average method complexity6.18
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions1976.00%
▷ Anonymous functions624.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
53 PNG files occupy 0.66MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
themes/templates/6/images/pinterest.png15.56KB1.68KB▼ 89.23%
themes/templates/8/images/twitter.png6.75KB3.45KB▼ 48.86%
themes/socialicon/1/pinterest.png6.87KB3.55KB▼ 48.34%
themes/socialicon/4/facebook.png3.44KB2.09KB▼ 39.30%
themes/templates/8/images/pinterest.png6.28KB3.59KB▼ 42.82%