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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.24 ▼2.21 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.56 ▼6.18 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 47.05 ▲0.76 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 84.02 ▼4.68 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 34.92 ▲2.90 |
NGS Maintenance Page /wp-admin/options-general.php?page=NGSMaintenancePage_page | 3.31 | 39.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.24 ▼1.40 | 4.35 ▲2.52 | 40.46 ▼3.74 |
Dashboard /wp-admin | 2,210 ▲28 | 5.85 ▲1.01 | 101.40 ▼0.59 | 39.43 ▼2.50 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.00 ▼0.01 | 39.15 ▲4.88 | 35.04 ▲1.01 |
Add New Post /wp-admin/post-new.php | 1,516 ▼18 | 17.71 ▼5.32 | 657.05 ▲3.15 | 51.38 ▲0.49 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.19 ▼0.05 | 96.57 ▼5.74 | 42.69 ▼1.65 |
NGS Maintenance Page /wp-admin/options-general.php?page=NGSMaintenancePage_page | 1,987 | 7.33 | 156.82 | 62.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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 45 | 307 | 427 |
PO File | 2 | 40 | 40 | 155 |
CSS | 2 | 1 | 36 | 36 |
JavaScript | 1 | 1 | 1 | 18 |
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 code | 0.46 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 7 | 41.18% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screen-2.png | 24.68KB | 8.90KB | ▼ 63.96% |
assets/screen-3.png | 12.14KB | 5.00KB | ▼ 58.87% |
assets/screen-1.png | 50.39KB | 17.31KB | ▼ 65.65% |