Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼6.36ms] Passed 4 tests
This is a short check of server-side resources used by Dark Mode For WP [GWE]
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 34.69 ▼7.39 |
Dashboard /wp-admin | 3.39 ▲0.09 | 44.19 ▼9.88 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 45.46 ▲1.32 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 83.97 ▼9.37 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 33.90 ▲1.21 |
Dark Mode For WP /wp-admin/options-general.php?page=dmfw | 3.29 | 30.68 |
Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 16 new options
New WordPress options |
---|
dmfw_link_text_hover_color |
widget_recent-posts |
can_compress_scripts |
dmfw_para_text_color |
db_upgraded |
widget_recent-comments |
dmfw_heading_text_color |
dmfw_switch |
widget_theysaidso_widget |
dmfw_body_bg_color |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Dark Mode For WP [GWE]
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲81 | 14.38 ▲0.12 | 2.22 ▲0.53 | 39.92 ▼4.48 |
Dashboard /wp-admin | 2,220 ▲43 | 5.80 ▲0.16 | 96.45 ▼10.42 | 43.11 ▼1.75 |
Posts /wp-admin/edit.php | 2,130 ▲33 | 2.25 ▲0.22 | 40.98 ▲2.57 | 35.10 ▲0.28 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.28 ▼0.07 | 689.99 ▲25.84 | 37.82 ▼20.41 |
Media Library /wp-admin/upload.php | 1,425 ▲22 | 4.41 ▲0.23 | 97.23 ▼0.96 | 41.23 ▼0.48 |
Dark Mode For WP /wp-admin/options-general.php?page=dmfw | 1,796 | 2.61 | 83.25 | 26.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 16 options in the database
- dmfw_link_bg_color
- dmfw_border_color
- widget_recent-comments
- dmfw_para_text_color
- dmfw_responsive_device
- theysaidso_admin_options
- db_upgraded
- dmfw_body_bg_color
- dmfw_toggle_btn_position
- dmfw_link_text_hover_color
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/dark-mode-for-wp/dark-mode-for-wp.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: dark theme, dark mode, night mode, wp dark mode, wordpress dark mode
dark-mode-for-wp/dark-mode-for-wp.php 85% from 13 tests
"Dark Mode For WP [GWE]" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 173 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin445 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 42 | 15 | 308 |
CSS | 4 | 6 | 10 | 102 |
JavaScript | 2 | 4 | 7 | 35 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin