Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼9.57ms] Passed 4 tests
Analyzing server-side resources used by DarkMySite - Advanced Dark Mode Plugin for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 43.80 ▲1.09 |
Dashboard /wp-admin | 3.50 ▲0.15 | 53.48 ▼15.23 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 47.99 ▼9.95 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 95.77 ▼14.19 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 43.81 ▲7.16 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/darkmysite/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 77 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
darkmysite_activation_date |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
darkmysite_settings |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
DarkMySite - Advanced Dark Mode Plugin for WordPress: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲167 | 13.24 ▼1.01 | 5.28 ▲3.64 | 43.37 ▲1.62 |
Dashboard /wp-admin | 2,273 ▲70 | 5.88 ▲0.07 | 110.04 ▲6.02 | 83.10 ▲36.77 |
Posts /wp-admin/edit.php | 2,164 ▲64 | 2.09 ▲0.06 | 34.71 ▼6.58 | 37.68 ▲0.44 |
Add New Post /wp-admin/post-new.php | 1,750 ▲219 | 22.48 ▼0.70 | 641.37 ▲17.42 | 63.07 ▲7.91 |
Media Library /wp-admin/upload.php | 1,461 ▲64 | 4.29 ▲0.09 | 99.33 ▲3.73 | 77.11 ▲32.04 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 8 options
- darkmysite_settings
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- darkmysite_activation_date
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/darkmysite/backend/templates/views/sidebar.php
- 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/darkmysite/backend/templates/views/media.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/darkmysite/frontend/templates/header_script.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/darkmysite/backend/api/update_settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/darkmysite/backend/templates/views/admin.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/darkmysite/backend/templates/views/switch.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/darkmysite/backend/templates/views/advanced.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/darkmysite/frontend/templates/views/switch.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/darkmysite/backend/templates/views/preset.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/darkmysite/backend/templates/dashboard.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/darkmysite/backend/templates/views/video.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: dark, dark theme, night mode, dark mode, wordpress dark mode
darkmysite/darkmysite.php 92% from 13 tests
The main file in "DarkMySite - Advanced Dark Mode Plugin for WordPress" v. 1.2.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
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 detected4,389 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 446 | 64 | 2,224 |
CSS | 2 | 110 | 76 | 1,547 |
JavaScript | 2 | 43 | 11 | 386 |
SVG | 29 | 0 | 0 | 232 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.79 |
Average class complexity | 17.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 4.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/preset/orange.png | 23.88KB | 24.80KB | 0.00% |
assets/img/switch/switch_durian.png | 4.40KB | 4.64KB | 0.00% |
assets/img/preset/black.png | 22.60KB | 23.68KB | 0.00% |
assets/img/preset/blue.png | 24.89KB | 25.66KB | 0.00% |
assets/img/switch/switch_fazli.png | 2.50KB | 2.56KB | 0.00% |