Benchmarks
Plugin footprint 65% 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: ▲1.22MB] [CPU: ▲14.30ms] 75% from 4 tests
An overview of server-side resources used by WP Dark Mode - Best Dark Mode Plugin for WordPress with Social Sharing
Please take the time to fix the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 3,777.34ms on /wp-admin/admin.php?page=wp-dark-mode-recommended-plugins)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.47 | 53.51 ▲12.51 |
Dashboard /wp-admin | 4.83 ▲1.49 | 75.16 ▲8.83 |
Posts /wp-admin/edit.php | 4.87 ▲1.51 | 70.61 ▲23.91 |
Add New Post /wp-admin/post-new.php | 7.33 ▲1.44 | 111.39 ▲15.63 |
Media Library /wp-admin/upload.php | 4.69 ▲1.46 | 55.17 ▲20.22 |
Recommended Plugins /wp-admin/admin.php?page=wp-dark-mode-recommended-plugins | 5.17 | 3,777.34 |
Tools /wp-admin/admin.php?page=wp-dark-mode-tools | 4.68 | 55.32 |
Social Share New /wp-admin/admin.php?page=wp-dark-mode-social-share | 4.73 | 57.99 |
Get Started /wp-admin/admin.php?page=wp-dark-mode-get-started | 4.68 | 53.32 |
Settings /wp-admin/admin.php?page=wp-dark-mode-settings | 4.73 | 100.64 |
Server storage [IO: ▲4.65MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 254 new files
Database: 1 new table, 42 new options
New tables |
---|
wp_wpdm_social_shares |
New WordPress options |
---|
wpdm_social_share_post_types |
wpdm_social_share_maximum_click_count |
widget_recent-comments |
wp_dark_mode_includes_excludes |
wp_dark_mode_switch |
wpdm_social_share_show_total_share_count |
wpdm_social_share_minimum_share_count |
wpdm_social_share_share_via_label |
wp_dark_mode_version |
wpdm_social_share_button_alignment |
... |
Browser metrics Passed 4 tests
WP Dark Mode - Best Dark Mode Plugin for WordPress with Social Sharing: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,289 ▲527 | 17.71 ▲3.37 | 7.97 ▲6.30 | 42.11 ▼3.10 |
Dashboard /wp-admin | 2,640 ▲463 | 8.59 ▲2.89 | 192.04 ▲102.37 | 103.99 ▲64.26 |
Posts /wp-admin/edit.php | 2,496 ▲396 | 3.67 ▲1.71 | 62.66 ▲27.90 | 82.03 ▲44.19 |
Add New Post /wp-admin/post-new.php | 6,407 ▲4,881 | 19.21 ▼3.82 | 902.14 ▲292.97 | 39.75 ▼7.57 |
Media Library /wp-admin/upload.php | 1,623 ▲220 | 4.71 ▲0.51 | 93.91 ▼3.95 | 84.57 ▲44.62 |
Recommended Plugins /wp-admin/admin.php?page=wp-dark-mode-recommended-plugins | 2,145 | 3.97 | 56.67 | 100.87 |
Tools /wp-admin/admin.php?page=wp-dark-mode-tools | 1,278 | 3.67 | 53.37 | 69.62 |
Upgrade Now /wp-admin/admin.php?page=# | 28 | 0.41 | 0.12 | 3.30 |
Social Share New /wp-admin/admin.php?page=wp-dark-mode-social-share | 5,528 | 6.16 | 140.91 | 72.03 |
Get Started /wp-admin/admin.php?page=wp-dark-mode-get-started | 2,665 | 21.22 | 514.99 | 122.11 |
Settings /wp-admin/admin.php?page=wp-dark-mode-settings | 5,857 | 6.67 | 172.19 | 141.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_wpdm_social_shares
- Zombie WordPress options were found after uninstall: 42 options
- wp_dark_mode_version
- wp_dark_mode_video_settings
- wpdm_social_share_button_position
- wp_dark_mode_triggers
- wpdm_social_share_hide_button_on
- db_upgraded
- wp_dark_mode_general
- wpdm_social_share_minimum_share_count
- wpdm_social_share_button_label
- wpdm_social_share_button_template
- ...
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 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-dark-mode/templates/social-share.php
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)
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=#
- > Network (severe)
wp-admin/admin.php?page=# - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=wp-dark-mode-get-started
- > Other (warning) in unknown
https://www.youtube.com/s/player/2be84af7/www-widgetapi.vflset/www-widgetapi.js 1248 Unrecognized feature: 'web-share'.
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
10 plugin tags: social share, night mode, dark mode toggle, gutenberg block, dark mode plugin...
wp-dark-mode/plugin.php 85% from 13 tests
This is the main PHP file of "WP Dark Mode - Best Dark Mode Plugin for WordPress with Social Sharing" version 4.2.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-dark-mode.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin12,339 lines of code in 152 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 67 | 1,922 | 3,322 | 9,358 |
CSS | 22 | 25 | 38 | 1,371 |
SVG | 46 | 0 | 0 | 961 |
Markdown | 2 | 156 | 0 | 471 |
JavaScript | 13 | 7 | 29 | 81 |
XML | 1 | 17 | 25 | 72 |
JSON | 1 | 0 | 0 | 25 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 28.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 1 | 4.35% |
▷ Concrete classes | 22 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 304 | |
▷ Static methods | 28 | 9.21% |
▷ Public methods | 255 | 83.88% |
▷ Protected methods | 8 | 2.63% |
▷ Private methods | 41 | 13.49% |
Functions | 29 | |
▷ Named functions | 18 | 62.07% |
▷ Anonymous functions | 11 | 37.93% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 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
46 compressed PNG files occupy 0.53MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/switch-preview.png | 0.69KB | 0.71KB | 0.00% |
assets/images/button-presets/12.png | 0.32KB | 0.35KB | 0.00% |
assets/images/btn-6/moon.png | 0.41KB | 0.42KB | 0.00% |
includes/wppool/campaign.png | 319.65KB | 123.97KB | ▼ 61.22% |
assets/images/btn-4/moon-light.png | 0.41KB | 0.42KB | 0.00% |