Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.17MB] [CPU: ▲493.63ms] 50% from 4 tests
A check of server-side resources used by Night Mode Karen Lite
Please fix the following
- CPU: Total CPU usage must kept under 500.00ms (currently 561.84ms on /wp-admin/tools.php?page=csf-welcome)
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 493.63ms on /wp-admin/admin.php?page=aras_p_night_mode_lite#tab=global)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲1.25 | 670.95 ▲648.79 |
Dashboard /wp-admin | 4.26 ▲1.20 | 605.32 ▲558.96 |
Posts /wp-admin/edit.php | 4.31 ▲1.21 | 601.52 ▲555.52 |
Add New Post /wp-admin/post-new.php | 6.56 ▲1.13 | 863.34 ▲211.25 |
Media Library /wp-admin/upload.php | 4.15 ▲1.14 | 1,459.42 ▲1,428.47 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 4.16 | 561.84 |
Server storage [IO: ▲1.35MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 153 new files
Database: no new tables, 1 new option
New WordPress options |
---|
aras_p_night_mode_lite |
Browser metrics Passed 4 tests
An overview of browser requirements for Night Mode Karen Lite
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,891 ▲295 | 16.34 ▲0.83 | 15.25 ▲4.72 | 47.83 ▼1.11 |
Dashboard /wp-admin | 3,033 ▲102 | 5.88 ▼0.27 | 132.34 ▼6.87 | 140.15 ▲29.25 |
Posts /wp-admin/edit.php | 2,821 ▲85 | 2.73 ▲0.01 | 63.05 ▼2.23 | 86.98 ▼3.15 |
Add New Post /wp-admin/post-new.php | 2,568 ▲692 | 21.01 ▲1.75 | 392.45 ▲3.57 | 114.33 ▼2.87 |
Media Library /wp-admin/upload.php | 1,821 ▲14 | 5.00 ▼0.02 | 136.00 ▼14.44 | 125.25 ▲10.02 |
Advanced /wp-admin/admin.php?page=aras_p_night_mode_lite#tab=advanced | 1,891 | 4.42 | 88.99 | 101.76 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 2,044 | 4.15 | 73.53 | 149.01 |
See More /wp-admin/admin.php?page=aras_p_night_mode_lite#tab=see-more | 1,882 | 4.14 | 81.77 | 100.48 |
Global /wp-admin/admin.php?page=aras_p_night_mode_lite#tab=global | 2,140 | 4.53 | 100.93 | 104.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 1 option
- aras_p_night_mode_lite
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function ArasGroupNightModeLite\\add_action() in wp-content/plugins/dark-mode-karen-lite/inc/class/core/FrontSide.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
dark-mode-karen-lite/index.php 77% from 13 tests
The primary PHP file in "Night Mode Karen Lite" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.0" instead of "7.2")
- Main file name: Name the main plugin file the same as the plugin slug ("dark-mode-karen-lite.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected17,636 lines of code in 113 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 73 | 2,154 | 979 | 9,239 |
PO File | 24 | 3,562 | 4,076 | 7,319 |
Markdown | 2 | 85 | 0 | 379 |
Sass | 2 | 22 | 0 | 273 |
CSS | 5 | 21 | 31 | 264 |
JavaScript | 3 | 43 | 3 | 143 |
SVG | 4 | 4 | 0 | 19 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 20.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 6.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 2 | 3.64% |
▷ Concrete classes | 53 | 96.36% |
▷ Final classes | 0 | 0.00% |
Methods | 190 | |
▷ Static methods | 40 | 21.05% |
▷ Public methods | 189 | 99.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.53% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/resources/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |