Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.29MB] [CPU: ▲289.77ms] 50% from 4 tests
This is a short check of server-side resources used by Night Mode for WordPress
The following require your attention
- CPU: Total CPU usage must kept under 500.00ms (currently 977.79ms on /wp-admin/admin.php?page=_nmfs&tab=5)
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 289.77ms on /wp-admin/admin.php?page=_nmfs&tab=5)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.90 ▲1.38 | 63.56 ▲12.92 |
Dashboard /wp-admin | 5.00 ▲1.59 | 644.71 ▲611.42 |
Posts /wp-admin/edit.php | 4.89 ▲1.24 | 970.90 ▲933.85 |
Add New Post /wp-admin/post-new.php | 8.19 ▲1.22 | 1,100.54 ▼167.62 |
Media Library /wp-admin/upload.php | 4.61 ▲1.30 | 730.40 ▲702.37 |
Night Mode /wp-admin/admin.php?page=_nmfs&tab=1 | 6.05 | 847.98 |
Options Object /wp-admin/admin.php?page=_nmfs&tab=4 | 4.92 | 953.41 |
Redux Framework /wp-admin/tools.php?page=redux-about | 4.59 | 967.89 |
Extras /wp-admin/admin.php?page=_nmfs&tab=3 | 4.92 | 592.07 |
Font Size kit /wp-admin/admin.php?page=_nmfs&tab=2 | 4.92 | 595.21 |
Import / Export /wp-admin/admin.php?page=_nmfs&tab=5 | 4.92 | 977.79 |
Server storage [IO: ▲3.98MB] [DB: ▲0.06MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 424 new files
Database: no new tables, 3 new options
New WordPress options |
---|
nmfs_opt |
nmfs_opt-transients |
redux_version_upgraded_from |
Browser metrics Passed 4 tests
Checking browser requirements for Night Mode for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,039 ▲285 | 16.44 ▲0.82 | 9.32 ▲3.37 | 2.30 ▼0.80 |
Dashboard /wp-admin | 3,033 ▲172 | 6.08 ▼0.14 | 120.80 ▼13.78 | 160.10 ▼2.45 |
Posts /wp-admin/edit.php | 2,746 ▲61 | 3.24 ▼0.00 | 66.22 ▲0.64 | 140.50 ▼3.96 |
Add New Post /wp-admin/post-new.php | 1,752 ▲91 | 17.21 ▼3.73 | 445.81 ▲48.23 | 160.16 ▲1.57 |
Media Library /wp-admin/upload.php | 1,749 ▲54 | 5.54 ▲0.08 | 141.61 ▼9.45 | 170.94 ▼28.74 |
Night Mode /wp-admin/admin.php?page=_nmfs&tab=1 | 2,924 | 6.46 | 160.92 | 150.84 |
Options Object /wp-admin/admin.php?page=_nmfs&tab=4 | 1,952 | 5.15 | 101.19 | 144.64 |
Redux Framework /wp-admin/tools.php?page=redux-about | 1,392 | 4.03 | 100.95 | 214.47 |
Extras /wp-admin/admin.php?page=_nmfs&tab=3 | 2,030 | 5.58 | 126.89 | 193.60 |
Font Size kit /wp-admin/admin.php?page=_nmfs&tab=2 | 2,012 | 5.14 | 110.08 | 150.71 |
Import / Export /wp-admin/admin.php?page=_nmfs&tab=5 | 1,952 | 5.04 | 100.83 | 141.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.06MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 3 options in the database
- nmfs_opt-transients
- redux_version_upgraded_from
- nmfs_opt
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=_nmfs&tab=5
- > Warning in wp-content/plugins/night-mode-and-font-size-kit/inc/redux-framework/ReduxCore/framework.php+1029
Invalid argument supplied for foreach()
SRP 0% 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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/night-mode-and-font-size-kit/nightmode-and-fontsize.php
- 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/night-mode-and-font-size-kit/inc/redux-framework/ReduxCore/inc/themecheck/checks/full_package.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/night-mode-and-font-size-kit/inc/redux-framework/ReduxCore/templates/panel/container.tpl.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Section' not found in wp-content/plugins/night-mode-and-font-size-kit/inc/redux-framework/ReduxCore/inc/extensions/customizer/inc/customizer_devs.php:12
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/night-mode-and-font-size-kit/inc/redux-framework/ReduxCore/templates/panel/content.tpl.php:12
- > PHP Fatal error
Uncaught Error: Class 'Redux_Customizer_Control' not found in wp-content/plugins/night-mode-and-font-size-kit/inc/redux-framework/ReduxCore/inc/extensions/customizer/inc/customizer_fields.php:3
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/night-mode-and-font-size-kit/inc/redux-framework/ReduxCore/inc/themecheck/checks/embedded.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/night-mode-and-font-size-kit/inc/redux-framework/ReduxCore/templates/panel/header_stickybar.tpl.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/night-mode-and-font-size-kit/inc/redux-framework/ReduxCore/inc/welcome/views/changelog.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/night-mode-and-font-size-kit/inc/redux-framework/ReduxCore/inc/class.p.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/night-mode-and-font-size-kit/inc/redux-framework/ReduxCore/inc/welcome/views/support.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=_nmfs&tab=1
- > Security (severe) in unknown
/wp-admin/admin.php?page=_nmfs&tab=1 - Refused to execute script from '/wp-admin/admin-ajax.php?action=redux_p&nonce=edf413708a&url=http%3A%2F%2Flook.redux.io%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3Dedf413708a%26url%3D' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
- > GET request to /wp-admin/admin.php?page=_nmfs&tab=4
- > Security (severe) in unknown
/wp-admin/admin.php?page=_nmfs&tab=4 - Refused to execute script from '/wp-admin/admin-ajax.php?action=redux_p&nonce=edf413708a&url=http%3A%2F%2Flook.redux.io%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3Dedf413708a%26url%3D' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
- > GET request to /wp-admin/admin.php?page=_nmfs&tab=3
- > Security (severe) in unknown
/wp-admin/admin.php?page=_nmfs&tab=3 - Refused to execute script from '/wp-admin/admin-ajax.php?action=redux_p&nonce=edf413708a&url=http%3A%2F%2Flook.redux.io%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3Dedf413708a%26url%3D' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
- > GET request to /wp-admin/admin.php?page=_nmfs&tab=2
- > Security (severe) in unknown
/wp-admin/admin.php?page=_nmfs&tab=2 - Refused to execute script from '/wp-admin/admin-ajax.php?action=redux_p&nonce=edf413708a&url=http%3A%2F%2Flook.redux.io%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3Dedf413708a%26url%3D' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
- > GET request to /wp-admin/admin.php?page=_nmfs&tab=5
- > Security (severe) in unknown
/wp-admin/admin.php?page=_nmfs&tab=5 - Refused to execute script from '/wp-admin/admin-ajax.php?action=redux_p&nonce=edf413708a&url=http%3A%2F%2Flook.redux.io%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3Dedf413708a%26url%3D' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
night-mode-and-font-size-kit/nightmode-and-fontsize.php 77% from 13 tests
The entry point to "Night Mode for WordPress" version 2.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("night-mode-and-font-size-kit.php" instead of "nightmode-and-fontsize.php")
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin38,105 lines of code in 303 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 111 | 3,814 | 5,675 | 16,094 |
JavaScript | 86 | 2,612 | 1,958 | 12,061 |
Sass | 54 | 1,187 | 60 | 7,580 |
SVG | 1 | 0 | 0 | 934 |
JSON | 1 | 184 | 0 | 909 |
CSS | 47 | 36 | 45 | 405 |
HTML | 1 | 6 | 0 | 62 |
LESS | 1 | 0 | 0 | 53 |
XML | 1 | 0 | 0 | 7 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 113)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 32.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 881.00 |
Average method complexity | 6.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 113.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 103 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 103 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 594 | |
▷ Static methods | 108 | 18.18% |
▷ Public methods | 449 | 75.59% |
▷ Protected methods | 91 | 15.32% |
▷ Private methods | 54 | 9.09% |
Functions | 17 | |
▷ Named functions | 16 | 94.12% |
▷ Anonymous functions | 1 | 5.88% |
Constants | 59 | |
▷ Global constants | 1 | 1.69% |
▷ Class constants | 58 | 98.31% |
▷ Public constants | 58 | 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
31 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/redux-framework/ReduxCore/assets/img/1col.png | 2.83KB | 0.14KB | ▼ 95.13% |
inc/redux-framework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
inc/redux-framework/ReduxCore/assets/img/4-col-portfolio.png | 1.01KB | 0.17KB | ▼ 83.45% |
inc/redux-framework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
inc/redux-framework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |