Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.47ms] Passed 4 tests
Analyzing server-side resources used by Dark Mode for Elementor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.22 ▼2.47 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.35 ▲0.90 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 57.22 ▲10.38 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.61 ▼7.70 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.39 ▼0.62 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Dark Mode for Elementor
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲83 | 13.23 ▼1.14 | 4.59 ▲2.85 | 38.54 ▼4.58 |
Dashboard /wp-admin | 2,227 ▲35 | 5.87 ▲0.94 | 103.60 ▼10.28 | 39.26 ▼4.85 |
Posts /wp-admin/edit.php | 2,109 ▲17 | 2.00 ▲0.01 | 41.61 ▼0.51 | 35.06 ▲0.78 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 22.98 ▼0.02 | 654.48 ▲45.77 | 61.05 ▲12.28 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.30 ▲0.09 | 99.26 ▲1.48 | 44.04 ▲0.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 DWP_Elementor_DM\\add_action() in wp-content/plugins/dark-mode-for-elementor/plugin.php:157
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: light mode, blackout, elementor, dark mode
dark-mode-for-elementor/develowp-elementor-dm.php 85% from 13 tests
The entry point to "Dark Mode for Elementor" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: It is recommended to name the main PHP file as the plugin slug ("dark-mode-for-elementor.php" instead of "develowp-elementor-dm.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin942 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 159 | 244 | 830 |
JavaScript | 2 | 26 | 7 | 112 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.40 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 36 | |
▷ Static methods | 3 | 8.33% |
▷ Public methods | 26 | 72.22% |
▷ Protected methods | 7 | 19.44% |
▷ Private methods | 3 | 8.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.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
There are no PNG files in this plugin