Benchmarks
Plugin footprint Passed 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.00MB] [CPU: ▼276.75ms] Passed 4 tests
A check of server-side resources used by Dark Mode for Twenty Nineteen
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 29.15 ▲7.26 |
Dashboard /wp-admin | 3.06 ▲0.01 | 42.31 ▲1.70 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 41.67 ▲1.67 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 93.40 ▼1,104.63 |
Media Library /wp-admin/upload.php | 3.00 ▼0.00 | 32.38 ▼5.75 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Dark Mode for Twenty Nineteen
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,676 ▲94 | 15.85 ▲0.25 | 7.89 ▼1.99 | 46.07 ▼3.35 |
Dashboard /wp-admin | 2,928 ▲76 | 5.88 ▲0.01 | 135.69 ▼3.28 | 105.20 ▼6.24 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.69 ▼0.01 | 67.35 ▲1.84 | 89.07 ▲0.44 |
Add New Post /wp-admin/post-new.php | 1,653 ▲2 | 18.65 ▲1.23 | 359.89 ▼8.66 | 109.15 ▼0.15 |
Media Library /wp-admin/upload.php | 1,772 ▼0 | 5.02 ▲0.00 | 137.72 ▼8.95 | 118.71 ▲0.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 75% from 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 everything seems fine, this is not 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
Almost there! Just fix the following items
- 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/dark-mode-for-twenty-nineteen/dark-mode-twenty-nineteen.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: dark mode, darkmode, twentynineteen
dark-mode-for-twenty-nineteen/dark-mode-twenty-nineteen.php 92% from 13 tests
The primary PHP file in "Dark Mode for Twenty Nineteen" version 1.2 is used by WordPress to initiate all plugin functionality
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 ("dark-mode-for-twenty-nineteen.php" instead of "dark-mode-twenty-nineteen.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected130 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 18 | 2 | 124 |
PHP | 1 | 3 | 9 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin