Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲5.49MB] [CPU: ▲29.16ms] 75% from 4 tests
This is a short check of server-side resources used by Dracula Dark Mode - AI-Powered Automatic Dark Mode for WordPress
The following require your attention
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.49MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.25 ▲5.78 | 64.24 ▲23.18 |
Dashboard /wp-admin | 9.27 ▲5.96 | 83.85 ▲34.11 |
Posts /wp-admin/edit.php | 9.28 ▲5.91 | 85.50 ▲35.83 |
Add New Post /wp-admin/post-new.php | 10.20 ▲4.30 | 118.28 ▲23.52 |
Media Library /wp-admin/upload.php | 9.27 ▲6.04 | 78.33 ▲42.61 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.27 | 72.95 |
Server storage [IO: ▲6.75MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 373 new files
Database: 3 new tables, 11 new options
New tables |
---|
wp_dracula_toggles |
wp_dracula_analytics |
wp_dracula_feedbacks |
New WordPress options |
---|
fs_active_plugins |
dracula_version |
theysaidso_admin_options |
dracula_install_time |
fs_debug_mode |
db_upgraded |
widget_theysaidso_widget |
fs_accounts |
widget_recent-comments |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Dracula Dark Mode - AI-Powered Automatic Dark Mode for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,327 ▲565 | 23.50 ▲8.86 | 14.22 ▲12.61 | 27.18 ▼20.30 |
Dashboard /wp-admin | 2,481 ▲304 | 12.20 ▲6.55 | 346.05 ▲246.94 | 151.67 ▲110.00 |
Posts /wp-admin/edit.php | 2,426 ▲326 | 11.05 ▲9.05 | 98.13 ▲57.14 | 126.21 ▲89.48 |
Add New Post /wp-admin/post-new.php | 2,264 ▲729 | 19.23 ▼5.85 | 852.85 ▲245.11 | 105.36 ▲44.54 |
Media Library /wp-admin/upload.php | 1,776 ▲379 | 13.58 ▲9.38 | 178.62 ▲77.58 | 155.20 ▲110.83 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,370 | 10.72 | 92.15 | 91.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/dracula-dark-mode/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie tables were found after uninstall: 3 tables
- wp_dracula_feedbacks
- wp_dracula_analytics
- wp_dracula_toggles
- This plugin did not uninstall successfully, leaving 11 options in the database
- fs_active_plugins
- can_compress_scripts
- dracula_version
- widget_recent-posts
- fs_accounts
- theysaidso_admin_options
- fs_debug_mode
- widget_recent-comments
- dracula_install_time
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 8× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/dracula-dark-mode/includes/base.php
- > /wp-content/plugins/dracula-dark-mode/elementor/class-elementor-settings.php
- > /wp-content/plugins/dracula-dark-mode/includes/class-hooks.php
- > /wp-content/plugins/dracula-dark-mode/includes/class-shortcode.php
- > /wp-content/plugins/dracula-dark-mode/plugin.php
- > /wp-content/plugins/dracula-dark-mode/includes/views/getting-started/basic-usage.php
- > /wp-content/plugins/dracula-dark-mode/includes/functions.php
- > /wp-content/plugins/dracula-dark-mode/includes/class-enqueue.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/dracula-dark-mode/includes/views/getting-started/introduction.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/dracula-dark-mode/includes/views/getting-started/help.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/dracula-dark-mode/includes/views/getting-started/get-pro.php:5
- > 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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: night mode, wp dark mode, dark mode, accessibility, dark...
dracula-dark-mode/plugin.php 92% from 13 tests
The entry point to "Dracula Dark Mode - AI-Powered Automatic Dark Mode for WordPress" version 1.0.6 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dracula-dark-mode.php" instead of "plugin.php")
Code Analysis 97% from 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 detected39,072 lines of code in 299 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 143 | 8,841 | 17,546 | 37,160 |
SVG | 121 | 0 | 1 | 1,658 |
JavaScript | 12 | 34 | 65 | 203 |
JSON | 1 | 0 | 0 | 29 |
CSS | 22 | 0 | 0 | 22 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 70.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 66 | |
▷ Abstract classes | 2 | 3.03% |
▷ Concrete classes | 64 | 96.97% |
▷ Final classes | 1 | 1.56% |
Methods | 1,391 | |
▷ Static methods | 217 | 15.60% |
▷ Public methods | 990 | 71.17% |
▷ Protected methods | 17 | 1.22% |
▷ Private methods | 384 | 27.61% |
Functions | 121 | |
▷ Named functions | 120 | 99.17% |
▷ Anonymous functions | 1 | 0.83% |
Constants | 151 | |
▷ Global constants | 104 | 68.87% |
▷ Class constants | 47 | 31.13% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
29 compressed PNG files occupy 0.52MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/getting-started/facebook-banner.png | 6.55KB | 6.70KB | 0.00% |
assets/images/toggles/toggle8/light-bg.png | 17.94KB | 19.07KB | 0.00% |
assets/images/getting-started/bg-shapes.png | 65.15KB | 72.80KB | 0.00% |
assets/images/getting-started/editor-compatibility.png | 20.31KB | 21.88KB | 0.00% |
assets/images/toggles/toggle10/light-bg.png | 5.26KB | 5.62KB | 0.00% |