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
Install script ran successfully
Server metrics [RAM: ▲0.56MB] [CPU: ▼0.22ms] Passed 4 tests
Server-side resources used by Coming Soon & Maintenance Mode Page & Under Construction
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 39.48 ▼1.09 |
Dashboard /wp-admin | 3.90 ▲0.60 | 50.04 ▼1.04 |
Posts /wp-admin/edit.php | 3.96 ▲0.59 | 52.44 ▲5.13 |
Add New Post /wp-admin/post-new.php | 6.51 ▲0.61 | 86.12 ▼3.89 |
Media Library /wp-admin/upload.php | 3.83 ▲0.60 | 41.51 ▲8.65 |
Server storage [IO: ▲3.55MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 190 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
nifty_cs_migrated |
nifty_cs_option |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Coming Soon & Maintenance Mode Page & Under Construction
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲68 | 14.20 ▼0.54 | 1.74 ▲0.05 | 41.87 ▼2.49 |
Dashboard /wp-admin | 2,232 ▲55 | 5.72 ▲0.11 | 93.99 ▼2.00 | 75.65 ▲35.38 |
Posts /wp-admin/edit.php | 2,137 ▲34 | 1.98 ▲0.03 | 35.55 ▼3.83 | 32.93 ▼0.27 |
Add New Post /wp-admin/post-new.php | 1,552 ▲23 | 23.04 ▼0.19 | 765.03 ▲180.51 | 60.37 ▼2.44 |
Media Library /wp-admin/upload.php | 1,428 ▲31 | 4.18 ▲0.01 | 97.12 ▼3.50 | 74.54 ▲29.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- nifty_cs_option
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- nifty_cs_migrated
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 68× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/nifty-coming-soon-and-under-construction-page/inc/customizer/partials.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function nifty_cs_get_default_options() in wp-content/plugins/nifty-coming-soon-and-under-construction-page/inc/customizer/sections/typography.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function nifty_cs_get_default_options() in wp-content/plugins/nifty-coming-soon-and-under-construction-page/inc/customizer/sections/countdown.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function nifty_cs_get_default_options() in wp-content/plugins/nifty-coming-soon-and-under-construction-page/inc/customizer/sections/general.php:14
- > PHP Fatal error
Uncaught Error: Class 'Nilambar\\CustomizerUtils\\Control\\Base' not found in wp-content/plugins/nifty-coming-soon-and-under-construction-page/vendor/ernilambar/ns-customizer-utilities/src/Control/Radio.php:19
- > PHP Fatal error
Uncaught Error: Class 'Nilambar\\CustomizerUtils\\Control\\Base' not found in wp-content/plugins/nifty-coming-soon-and-under-construction-page/vendor/ernilambar/ns-customizer-utilities/src/Control/Select.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function nifty_cs_get_option() in wp-content/plugins/nifty-coming-soon-and-under-construction-page/template-parts/sections/contact.php:8
- > PHP Warning
require_once(NCSUCP_DIR/inc/customizer/init.php): failed to open stream: No such file or directory in wp-content/plugins/nifty-coming-soon-and-under-construction-page/inc/init.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Nilambar\\CustomizerUtils\\Control\\Base' not found in wp-content/plugins/nifty-coming-soon-and-under-construction-page/vendor/ernilambar/ns-customizer-utilities/src/Control/RadioImage.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/nifty-coming-soon-and-under-construction-page/inc/hooks/activation.php:17
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
nifty-coming-soon-and-under-construction-page/nifty-coming-soon.php 85% from 13 tests
The main PHP file in "Coming Soon & Maintenance Mode Page & Under Construction" ver. 3.0.8 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 189 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("nifty-coming-soon-and-under-construction-page.php" instead of "nifty-coming-soon.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin30,413 lines of code in 125 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 95 | 1,517 | 3,508 | 15,301 |
JavaScript | 14 | 1,991 | 356 | 9,832 |
CSS | 7 | 254 | 256 | 4,308 |
SVG | 1 | 0 | 0 | 476 |
JSON | 5 | 0 | 0 | 385 |
Markdown | 3 | 19 | 0 | 111 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 9.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 51 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 250 | |
▷ Static methods | 63 | 25.20% |
▷ Public methods | 225 | 90.00% |
▷ Protected methods | 17 | 6.80% |
▷ Private methods | 8 | 3.20% |
Functions | 60 | |
▷ Named functions | 54 | 90.00% |
▷ Anonymous functions | 6 | 10.00% |
Constants | 22 | |
▷ Global constants | 19 | 86.36% |
▷ Class constants | 3 | 13.64% |
▷ Public constants | 3 | 100.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
37 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/menu.png | 1.22KB | 0.33KB | ▼ 73.05% |
assets/images/patterns/12.png | 0.13KB | 0.11KB | ▼ 13.85% |
assets/images/patterns-preview/05.png | 0.27KB | 0.11KB | ▼ 59.50% |
assets/images/patterns/08.png | 0.14KB | 0.11KB | ▼ 26.03% |
assets/images/patterns/01.png | 0.21KB | 0.10KB | ▼ 53.05% |