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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼1.68ms] 75% from 4 tests
A check of server-side resources used by Darklup - Enhanced WordPress Dark Mode, Dark Theme, Night Mode Plugin
Please have a look at the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 899.61ms on /wp-admin/admin.php?page=darklup-lite-useful-plugins)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 42.16 ▲0.83 |
Dashboard /wp-admin | 3.39 ▲0.08 | 51.00 ▲1.76 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 46.15 ▼0.97 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 94.13 ▼6.91 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 33.60 ▲0.35 |
Settings /wp-admin/admin.php?page=darkluplite-setting-admin | 3.54 | 48.00 |
Get Pro /wp-admin/admin.php?page=darkluplite-get-pro | 3.34 | 43.47 |
Useful Plugins /wp-admin/admin.php?page=darklup-lite-useful-plugins | 3.61 | 899.61 |
Server storage [IO: ▲2.99MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 234 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
darkluplite_settings |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_darkluplite_darkmode_switch_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Darklup - Enhanced WordPress Dark Mode, Dark Theme, Night Mode Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,149 ▲387 | 17.76 ▲3.41 | 23.70 ▲21.91 | 39.13 ▼13.82 |
Dashboard /wp-admin | 2,459 ▲285 | 7.35 ▲1.76 | 165.20 ▲71.71 | 100.25 ▲50.52 |
Posts /wp-admin/edit.php | 2,283 ▲183 | 3.87 ▲1.91 | 50.69 ▲11.46 | 58.74 ▲22.38 |
Add New Post /wp-admin/post-new.php | 6,507 ▲4,981 | 20.09 ▼3.05 | 924.70 ▲249.59 | 36.00 ▼17.19 |
Media Library /wp-admin/upload.php | 1,611 ▲211 | 6.24 ▲2.02 | 111.33 ▲12.38 | 82.49 ▲41.55 |
Settings /wp-admin/admin.php?page=darkluplite-setting-admin | 12,478 | 5.76 | 332.38 | 124.18 |
Get Pro /wp-admin/admin.php?page=darkluplite-get-pro | 15,301 | 9.97 | 310.48 | 111.19 |
Useful Plugins /wp-admin/admin.php?page=darklup-lite-useful-plugins | 1,135 | 3.57 | 63.24 | 111.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_darkluplite_darkmode_switch_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 11× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/darklup-lite-wp-dark-mode/inc/class-helper.php
- > /wp-content/plugins/darklup-lite-wp-dark-mode/inc/custom-controls/elemenor-control/image-select.php
- > /wp-content/plugins/darklup-lite-wp-dark-mode/page-builder/wpbakery/darkluplite-vc-init.php
- > /wp-content/plugins/darklup-lite-wp-dark-mode/inc/class-hooks.php
- > /wp-content/plugins/darklup-lite-wp-dark-mode/inc/class-enqueue.php
- > /wp-content/plugins/darklup-lite-wp-dark-mode/admin/admin.php
- > /wp-content/plugins/darklup-lite-wp-dark-mode/page-builder/wpbakery/vc-darkmode-switch.php
- > /wp-content/plugins/darklup-lite-wp-dark-mode/inc/custom-controls/elemenor-control/custom-control.php
- > /wp-content/plugins/darklup-lite-wp-dark-mode/page-builder/wpbakery/image-switch-param.php
- > /wp-content/plugins/darklup-lite-wp-dark-mode/page-builder/wpbakery/vc-darkmode-switch-markup.php
- 33× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant DARKLUPLITE_ALERT_MSG - assumed 'DARKLUPLITE_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/darklup-lite-wp-dark-mode/page-builder/wpbakery/darkluplite-vc-init.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'DarklupLite\\Admin\\Settings_Fields_Base' not found in wp-content/plugins/darklup-lite-wp-dark-mode/admin/admin-templates/template-woocommerce-settings.php:12
- > PHP Warning
Use of undefined constant DARKLUPLITE_ALERT_MSG - assumed 'DARKLUPLITE_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/darklup-lite-wp-dark-mode/page-builder/wpbakery/vc-darkmode-switch.php on line 11
- > PHP Fatal error
Trait 'DarklupLite\\Admin\\Field\\CSS_Editor' not found in wp-content/plugins/darklup-lite-wp-dark-mode/admin/setting-fields/class-settings-fields-base.php on line 13
- > PHP Warning
Use of undefined constant DARKLUPLITE_ALERT_MSG - assumed 'DARKLUPLITE_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/darklup-lite-wp-dark-mode/inc/custom-controls/elemenor-control/image-select.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'DarklupLite\\Admin\\Settings_Fields_Base' not found in wp-content/plugins/darklup-lite-wp-dark-mode/admin/admin-templates/template-admin-settings.php:13
- > PHP Fatal error
Uncaught Error: Class 'DarklupLite\\Admin\\Settings_Fields_Base' not found in wp-content/plugins/darklup-lite-wp-dark-mode/admin/admin-templates/template-home-settings.php:13
- > PHP Warning
Use of undefined constant DARKLUPLITE_ALERT_MSG - assumed 'DARKLUPLITE_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/darklup-lite-wp-dark-mode/inc/class-enqueue.php on line 15
- > PHP Warning
Use of undefined constant DARKLUPLITE_DIR_ADMIN - assumed 'DARKLUPLITE_DIR_ADMIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/darklup-lite-wp-dark-mode/admin/setting-fields/class-settings-fields.php on line 19
- > PHP Warning
Use of undefined constant DARKLUPLITE_ALERT_MSG - assumed 'DARKLUPLITE_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/darklup-lite-wp-dark-mode/inc/class-helper.php on line 12
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7, #8 in darklup-lite-wp-dark-mode/assets to your readme.txt
darklup-lite-wp-dark-mode/darklup-lite.php 85% from 13 tests
"Darklup - Enhanced WordPress Dark Mode, Dark Theme, Night Mode Plugin" version 3.2.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("darklup-lite-wp-dark-mode.php" instead of "darklup-lite.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin14,270 lines of code in 180 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 57 | 1,540 | 1,878 | 6,953 |
CSS | 23 | 336 | 129 | 4,567 |
JavaScript | 38 | 162 | 165 | 1,077 |
SVG | 56 | 0 | 0 | 957 |
Sass | 2 | 13 | 0 | 284 |
Markdown | 1 | 82 | 0 | 255 |
XML | 1 | 6 | 11 | 95 |
JSON | 2 | 11 | 0 | 82 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 10.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 16 | |
Classes | 34 | |
▷ Abstract classes | 1 | 2.94% |
▷ Concrete classes | 33 | 97.06% |
▷ Final classes | 2 | 6.06% |
Methods | 265 | |
▷ Static methods | 74 | 27.92% |
▷ Public methods | 228 | 86.04% |
▷ Protected methods | 9 | 3.40% |
▷ Private methods | 28 | 10.57% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.20MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/3.png | 2.62KB | 0.15KB | ▼ 94.12% |
page-builder/gutenberg-block/darkluplite-switch-block/img/2.png | 1.21KB | 0.63KB | ▼ 47.98% |
assets/img/switch-5.png | 17.65KB | 1.63KB | ▼ 90.74% |
admin/assets/img/5.png | 46.14KB | 13.96KB | ▼ 69.75% |
admin/assets/img/2.png | 0.20KB | 0.18KB | ▼ 8.87% |