Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼5.05ms] Passed 4 tests
Server-side resources used by WP Nightly - Dark Mode for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 38.78 ▲2.12 |
Dashboard /wp-admin | 3.42 ▲0.12 | 44.15 ▼9.82 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 48.97 ▼0.27 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 89.01 ▼8.54 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 32.23 ▼1.56 |
Settings /wp-admin/admin.php?page=wp_nightly | 3.34 | 31.22 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Nightly - Dark Mode for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲123 | 13.33 ▼1.05 | 3.94 ▲2.30 | 35.96 ▼8.54 |
Dashboard /wp-admin | 2,247 ▲65 | 4.88 ▼0.03 | 112.65 ▲0.51 | 42.15 ▼3.61 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.05 ▲0.06 | 37.35 ▼3.77 | 38.32 ▲2.68 |
Add New Post /wp-admin/post-new.php | 1,527 ▼15 | 17.71 ▼0.64 | 660.64 ▲44.05 | 53.56 ▼12.32 |
Media Library /wp-admin/upload.php | 1,432 ▲44 | 4.27 ▼0.03 | 99.22 ▲2.11 | 41.56 ▼3.21 |
Settings /wp-admin/admin.php?page=wp_nightly | 1,052 | 9.20 | 222.06 | 30.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function WPNightly\\add_action() in wp-content/plugins/nightly/inc/dashboard.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function WPNightly\\add_action() in wp-content/plugins/nightly/inc/frontend.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function WPNightly\\add_action() in wp-content/plugins/nightly/inc/settings.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: gutenberg blocks, dark mode, night mode, blocks
nightly/nightly.php 85% from 13 tests
The main PHP file in "WP Nightly - Dark Mode for WordPress" ver. 0.0.1-beta.3... adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "0.0.1-beta.3...")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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 plugin2,186 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 20 | 150 | 202 | 1,292 |
Sass | 2 | 97 | 11 | 441 |
PHP | 8 | 95 | 190 | 429 |
SVG | 1 | 0 | 0 | 14 |
CSS | 6 | 0 | 0 | 10 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 3.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 24 | |
▷ Static methods | 4 | 16.67% |
▷ Public methods | 23 | 95.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.17% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected