Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.62ms] Passed 4 tests
Analyzing server-side resources used by WP Dark Mode Block
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.00 ▼5.22 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.37 ▼3.17 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.78 ▲1.67 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.07 ▼11.77 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.74 ▲3.60 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
WP Dark Mode Block: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲148 | 13.99 ▼0.36 | 5.25 ▲3.42 | 40.55 ▼10.18 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▲0.79 | 96.35 ▼22.66 | 38.66 ▼4.71 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.11 ▲0.09 | 39.82 ▲6.28 | 35.12 ▼0.31 |
Add New Post /wp-admin/post-new.php | 6,589 ▲5,056 | 29.45 ▲6.30 | 862.68 ▲262.31 | 35.50 ▼18.13 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.17 ▼0.07 | 96.88 ▼9.87 | 43.48 ▼4.28 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Screenshots: Please describe screenshot #5 in wp-dark-mode-block/assets to your readme.txt
- Screenshots: Screenshot #1 (Dark Mode Switch Block) image not found
wp-dark-mode-block/plugin.php 85% from 13 tests
"WP Dark Mode Block" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-dark-mode-block.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin659 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 69 | 9 | 337 |
JavaScript | 6 | 66 | 4 | 254 |
PHP | 2 | 10 | 24 | 28 |
SVG | 1 | 0 | 0 | 20 |
HTML | 1 | 3 | 0 | 11 |
JSON | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
23 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/button-presets/btn-6/moon.png | 0.76KB | 0.45KB | ▼ 40.54% |
src/button-presets/btn-6/sun.png | 0.90KB | 0.52KB | ▼ 42.75% |
src/button-presets/btn-3/moon-light.png | 0.76KB | 0.45KB | ▼ 40.54% |
src/button-presets/btn-2-moon.png | 1.89KB | 1.22KB | ▼ 35.18% |
src/button-presets/btn-3/moon-dark.png | 1.94KB | 0.86KB | ▼ 55.96% |