73% skt-maintenance

Code Review | SKT Maintenance - Coming Soon, Under Construction, Maintenance Landing Page

WordPress plugin SKT Maintenance - Coming Soon, Under Construction, Maintenance Landing Page scored73%from 54 tests.

About plugin

  • Plugin page: skt-maintenance
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.1
  • WordPress version: 6.3.1
  • First release: May 10, 2021
  • Latest release: May 10, 2021
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: sonalsinha21 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /699 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.26MB] [CPU: ▼0.94ms] Passed 4 tests

Server-side resources used by SKT Maintenance - Coming Soon, Under Construction, Maintenance Landing Page
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1840.93 ▼6.18
Dashboard /wp-admin3.61 ▲0.3054.73 ▼5.67
Posts /wp-admin/edit.php3.68 ▲0.3252.55 ▲2.25
Add New Post /wp-admin/post-new.php6.23 ▲0.34101.32 ▲5.85
Media Library /wp-admin/upload.php3.46 ▲0.2341.70 ▲6.74

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: 1 new table, 22 new options
New tables
wp_skt_maintenance_excludepage
New WordPress options
heading
headingfont_size
test-editor
page_title
heading_color
footer_text
widget_recent-posts
widget_recent-comments
background_overlay_bodycss
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

A check of browser resources used by SKT Maintenance - Coming Soon, Under Construction, Maintenance Landing Page
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,978 ▲23214.95 ▲0.571.78 ▼0.4141.36 ▼5.98
Dashboard /wp-admin2,387 ▲1996.69 ▲1.79141.82 ▲30.0441.77 ▼1.68
Posts /wp-admin/edit.php2,293 ▲2073.58 ▲1.5656.68 ▲21.6831.32 ▼4.31
Add New Post /wp-admin/post-new.php1,705 ▲19122.75 ▲4.93641.39 ▼58.6836.31 ▼17.56
Media Library /wp-admin/upload.php1,432 ▲504.37 ▲0.2182.11 ▼24.6642.68 ▲0.53

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wp_skt_maintenance_excludepage
  • Zombie WordPress options were found after uninstall: 22 options
    • page_title
    • footer_text
    • fontfamily
    • theysaidso_admin_options
    • description_color
    • site_title_color
    • background_bodycss
    • widget_recent-comments
    • footer_textfont_size
    • headingfont_size
    • ...

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function maybe_unserialize() in wp-content/plugins/skt-maintenance/admin/google-fonts.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/skt-maintenance/admin/maintenance-menu.php:5

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 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Contributors: The plugin contributors field is missing
You can look at the official readme.txt

skt-maintenance/maintenance.php 92% from 13 tests

The main PHP script in "SKT Maintenance - Coming Soon, Under Construction, Maintenance Landing Page" version 1.2 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("skt-maintenance.php" instead of "maintenance.php")

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
Everything looks great! No dangerous files found in this plugin1,814 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP563331,557
CSS291129216
JavaScript25241

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.05
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/lock-icon.png1.64KB0.97KB▼ 40.87%