Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.23MB] [CPU: ▼44.65ms] Passed 4 tests
An overview of server-side resources used by Cybro WP Easy Dark Mode
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.76 ▼0.71 | 13.56 ▼22.14 |
Dashboard /wp-admin | 2.79 ▼0.56 | 15.65 ▼43.38 |
Posts /wp-admin/edit.php | 2.80 ▼0.57 | 17.04 ▼28.21 |
Add New Post /wp-admin/post-new.php | 2.79 ▼3.10 | 17.89 ▼84.76 |
Media Library /wp-admin/upload.php | 2.79 ▼0.44 | 13.71 ▼22.26 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cybro WP Easy Dark Mode
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲75 | 14.42 ▼0.24 | 1.93 ▲0.42 | 36.65 ▼4.40 |
Dashboard /wp-admin | 2,213 ▲33 | 5.59 ▼0.03 | 86.88 ▲0.36 | 38.25 ▼5.57 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.01 ▲0.03 | 32.05 ▼3.77 | 31.55 ▼4.54 |
Add New Post /wp-admin/post-new.php | 1,549 ▲21 | 24.97 ▲1.74 | 596.93 ▼71.79 | 80.72 ▲16.93 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.27 ▲0.11 | 95.89 ▼3.70 | 43.47 ▼1.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/cybro-wp-easy-dark-mode/dark-dash.php+101
date_default_timezone_set(): Timezone ID '+00:00' is invalid
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cybro-wp-easy-dark-mode/dark-dash.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Dashboard /assets/dashboard2022-11-14 164306.png), #2 (Plugins /assets/plugins2022-11-14 164754.png), #3 (Themes /assets/themes2022-11-14 164946.png), #4 (WooCommerce /assets/woocommerce2022-11-14 170302.png), #5 (Jetpack /assets/jetpack2022-11-14 165918.png)
cybro-wp-easy-dark-mode/dark-dash.php 92% from 13 tests
The main PHP file in "Cybro WP Easy Dark Mode" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cybro-wp-easy-dark-mode.php" instead of "dark-dash.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
Good job! No executable or dangerous file extensions detected3,875 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 4 | 37 | 4 | 1,884 |
CSS | 1 | 460 | 0 | 1,876 |
PHP | 1 | 18 | 11 | 92 |
JavaScript | 1 | 5 | 0 | 23 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.80MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/woocommerce2022-11-14 170302.png | 309.16KB | 102.92KB | ▼ 66.71% |
assets/dashboard2022-11-14 164306.png | 106.56KB | 39.96KB | ▼ 62.50% |
assets/plugins2022-11-14 164754.png | 110.25KB | 45.42KB | ▼ 58.81% |
assets/themes2022-11-14 164946.png | 245.82KB | 77.12KB | ▼ 68.63% |
assets/jetpack2022-11-14 165918.png | 43.06KB | 16.94KB | ▼ 60.65% |