89% ngs-maintenance-page

Code Review | NGS Maintenance Page

WordPress plugin NGS Maintenance Page scored 89% from 54 tests.

About plugin

  • Plugin page: ngs-maintenance-page
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.3-4.7.3
  • WordPress version: 6.3.1
  • First release: Apr 7, 2017
  • Latest release: Apr 10, 2017
  • Number of updates: 11
  • Update frequency: every 0.2 days
  • Top authors: nilsguder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 518 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.04MB] [CPU: ▼3.08ms] Passed 4 tests

A check of server-side resources used by NGS Maintenance Page
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.24 ▼2.21
Dashboard /wp-admin3.35 ▲0.0545.56 ▼6.18
Posts /wp-admin/edit.php3.46 ▲0.1147.05 ▲0.76
Add New Post /wp-admin/post-new.php5.93 ▲0.0584.02 ▼4.68
Media Library /wp-admin/upload.php3.27 ▲0.0534.92 ▲2.90
NGS Maintenance Page /wp-admin/options-general.php?page=NGSMaintenancePage_page3.3139.80

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for NGS Maintenance Page
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.24 ▼1.404.35 ▲2.5240.46 ▼3.74
Dashboard /wp-admin2,210 ▲285.85 ▲1.01101.40 ▼0.5939.43 ▼2.50
Posts /wp-admin/edit.php2,093 ▲72.00 ▼0.0139.15 ▲4.8835.04 ▲1.01
Add New Post /wp-admin/post-new.php1,516 ▼1817.71 ▼5.32657.05 ▲3.1551.38 ▲0.49
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0596.57 ▼5.7442.69 ▼1.65
NGS Maintenance Page /wp-admin/options-general.php?page=NGSMaintenancePage_page1,9877.33156.8262.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Frontend), #2 (Admin Interface - Options Page Top), #3 (Admin Interface - Options Page Bottom)
You can look at the official readme.txt

ngs-maintenance-page/index.php 92% from 13 tests

The primary PHP file in "NGS Maintenance Page" version 1.1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ngs-maintenance-page.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected636 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP645307427
PO File24040155
CSS213636
JavaScript11118

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity11.00
▷ Minimum class complexity5.00
▷ Maximum class complexity14.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods741.18%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screen-2.png24.68KB8.90KB▼ 63.96%
assets/screen-3.png12.14KB5.00KB▼ 58.87%
assets/screen-1.png50.39KB17.31KB▼ 65.65%