88% wp-quick-maintenance

Code Review | WP Quick Maintenance

WordPress plugin WP Quick Maintenance scored 88% from 54 tests.

About plugin

  • Plugin page: wp-quick-maintenance
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 5.8.1
  • First release: Aug 22, 2015
  • Latest release: Apr 26, 2016
  • Number of updates: 7
  • Update frequency: every 35.6 days
  • Top authors: help4cms (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active / 2,356 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by WP Quick Maintenance
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.00 ▲0.1645.50 ▲2.98
Dashboard /wp-admin3.29 ▲0.2360.23 ▲8.63
Posts /wp-admin/edit.php3.34 ▲0.2364.07 ▲11.48
Add New Post /wp-admin/post-new.php5.58 ▲0.15107.28 ▼633.48
Media Library /wp-admin/upload.php3.17 ▲0.1744.38 ▲7.38

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 68 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WP Quick Maintenance: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,699 ▲12715.54 ▲0.1211.78 ▼0.2349.37 ▼4.61
Dashboard /wp-admin2,987 ▲615.89 ▼0.30163.01 ▼2.62110.18 ▼11.19
Posts /wp-admin/edit.php2,759 ▲202.73 ▲0.0081.29 ▲3.5888.03 ▼11.62
Add New Post /wp-admin/post-new.php1,696 ▲1318.30 ▼0.37426.08 ▼78.05116.52 ▼8.23
Media Library /wp-admin/upload.php1,827 ▲205.02 ▼0.01173.93 ▲2.98117.45 ▼1.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

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
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-quick-maintenance/wp-quick-maintenance.php
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-quick-maintenance/metabox/tests/bootstrap.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-quick-maintenance/maintenance.php:2
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/wp-quick-maintenance/metabox/tests/bootstrap.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-quick-maintenance/metabox/tests/test-cmb-core.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-quick-maintenance/metabox/example-functions.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-quick-maintenance/metabox/init.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: There are too many tags (15 tag instead of maximum 10)
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Admin Setting), #2 (Frontend View of WP Quick Maintenance Plugin)
You can look at the official readme.txt

wp-quick-maintenance/wp-quick-maintenance.php Passed 13 tests

The entry point to "WP Quick Maintenance" version 0.1 is a PHP file that has certain tags in its header comment area
131 characters long description:
WP Quick Maintenance Plugin will help you easily enable maintenance mode on your site or add a coming soon page for a new website.

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
Good job! No executable or dangerous file extensions detected17,364 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
Bourne Shell115459

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity50.88
▷ Minimum class complexity1.00
▷ Maximum class complexity137.00
Average method complexity3.81
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
▷ Static methods3524.65%
▷ Public methods14098.59%
▷ Protected methods21.41%
▷ Private methods00.00%
▷ Named functions1392.86%
▷ Anonymous functions17.14%
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
17 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/favicon.png3.13KB0.75KB▼ 76.13%
metabox/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
metabox/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%