Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.60MB] [CPU: ▼0.86ms] Passed 4 tests
Analyzing server-side resources used by CMP - Coming Soon & Maintenance Plugin by NiteoThemes
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.09 ▲0.63 | 47.37 ▲4.28 |
Dashboard /wp-admin | 3.94 ▲0.60 | 55.72 ▼9.29 |
Posts /wp-admin/edit.php | 3.99 ▲0.64 | 53.75 ▲3.57 |
Add New Post /wp-admin/post-new.php | 6.48 ▲0.60 | 96.59 ▼1.98 |
Media Library /wp-admin/upload.php | 3.80 ▲0.58 | 51.56 ▲15.44 |
Upload CMP Theme /wp-admin/admin.php?page=cmp-upload-theme | 3.79 | 41.42 |
CMP Basic Setup /wp-admin/admin.php?page=cmp-settings | 4.31 | 80.86 |
CMP Translation /wp-admin/admin.php?page=cmp-translate | 3.82 | 40.98 |
CMP Subscribers /wp-admin/admin.php?page=cmp-subscribers | 3.82 | 38.63 |
CMP Advanced Setup /wp-admin/admin.php?page=cmp-advanced | 4.06 | 49.90 |
Server storage [IO: ▲15.52MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please try to fix the following items
- The plugin illegally modified 2 files (4.00KB) outside of "wp-content/plugins/cmp-coming-soon-maintenance/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/cmp-coming-soon-maintenance/img/thumbnails/nova_thumbnail.jpg\357\200\272Zone.Identifier"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 580 new files
Database: no new tables, 9 new options
New WordPress options |
---|
niteoCS_translation |
widget_theysaidso_widget |
niteoCS_version |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
niteoCS_slider |
Browser metrics Passed 4 tests
CMP - Coming Soon & Maintenance Plugin by NiteoThemes: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,030 ▲269 | 13.60 ▼1.07 | 5.98 ▲4.26 | 42.69 ▲1.35 |
Dashboard /wp-admin | 2,282 ▲82 | 5.85 ▼0.03 | 98.09 ▼30.81 | 81.82 ▲20.09 |
Posts /wp-admin/edit.php | 2,179 ▲76 | 2.00 ▼0.04 | 36.79 ▼5.70 | 34.66 ▲0.46 |
Add New Post /wp-admin/post-new.php | 1,760 ▲220 | 24.47 ▲1.08 | 718.34 ▲24.12 | 49.63 ▼15.35 |
Media Library /wp-admin/upload.php | 1,476 ▲79 | 4.22 ▲0.02 | 110.82 ▲11.37 | 84.12 ▲36.52 |
Upload CMP Theme /wp-admin/admin.php?page=cmp-upload-theme | 1,024 | 2.08 | 28.75 | 37.98 |
CMP Basic Setup /wp-admin/admin.php?page=cmp-settings | 7,542 | 10.17 | 382.09 | 243.14 |
CMP Translation /wp-admin/admin.php?page=cmp-translate | 1,216 | 2.03 | 26.07 | 33.99 |
CMP Subscribers /wp-admin/admin.php?page=cmp-subscribers | 1,156 | 1.68 | 24.64 | 26.36 |
CMP Advanced Setup /wp-admin/admin.php?page=cmp-advanced | 2,285 | 2.18 | 53.65 | 39.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 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
Please fix the following
- 44× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/cmp-coming-soon-maintenance/cmp-settings.php
- > /wp-content/plugins/cmp-coming-soon-maintenance/cmp-translate.php
- > /wp-content/plugins/cmp-coming-soon-maintenance/inc/settings/settings-special_effects-disabled.php
- > /wp-content/plugins/cmp-coming-soon-maintenance/themes/countdown/countdown-social_settings.php
- > /wp-content/plugins/cmp-coming-soon-maintenance/inc/settings/settings-lang-switcher-disabled.php
- > /wp-content/plugins/cmp-coming-soon-maintenance/inc/settings/settings-progress-bar.php
- > /wp-content/plugins/cmp-coming-soon-maintenance/inc/settings/settings-contact_form-disabled.php
- > /wp-content/plugins/cmp-coming-soon-maintenance/inc/class-cmp-render_html.php
- > /wp-content/plugins/cmp-coming-soon-maintenance/inc/settings/settings-seo.php
- > /wp-content/plugins/cmp-coming-soon-maintenance/themes/hardwork/hardwork-defaults.php
- 41× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: liclass in wp-content/plugins/cmp-coming-soon-maintenance/inc/render/social-icons.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/cmp-coming-soon-maintenance/themes/hardwork/hardwork-theme.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cmp-coming-soon-maintenance/inc/render/graphic-slider.php:9
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cmp-coming-soon-maintenance/inc/render/content.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cmp-coming-soon-maintenance/inc/render/fonts.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cmp-coming-soon-maintenance/inc/settings/settings-footer-disabled.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cmp-coming-soon-maintenance/inc/render/graphic-background.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cmp-coming-soon-maintenance/inc/webfonts.php:3
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/cmp-coming-soon-maintenance/inc/render/custom-css.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cmp-coming-soon-maintenance/inc/render/graphic-overlay.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: coming soon, launch page, under construction, coming soon page, maintenance mode
cmp-coming-soon-maintenance/niteo-cmp.php 92% from 13 tests
"CMP - Coming Soon & Maintenance Plugin by NiteoThemes" version 4.1.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("cmp-coming-soon-maintenance.php" instead of "niteo-cmp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected29,630 lines of code in 384 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 279 | 0 | 12 | 9,723 |
PHP | 77 | 2,500 | 1,454 | 9,286 |
CSS | 11 | 2,082 | 76 | 7,653 |
JavaScript | 16 | 276 | 151 | 1,773 |
PO File | 1 | 507 | 596 | 1,195 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 88.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 432.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 153 | |
▷ Static methods | 1 | 0.65% |
▷ Public methods | 149 | 97.39% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 2.61% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 17 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.67MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/patterns/photography.png | 0.98KB | 1.07KB | 0.00% |
img/patterns/gray_sand.png | 16.58KB | 19.53KB | 0.00% |
img/patterns/playstation.png | 21.69KB | 3.89KB | ▼ 82.06% |
img/patterns/noisy.png | 20.89KB | 22.76KB | 0.00% |
img/patterns/green_dust_scratch.png | 42.62KB | 47.33KB | 0.00% |