Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.65ms] Passed 4 tests
Analyzing server-side resources used by BlackWebsite Wp Dark Mode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 23.70 ▼19.82 |
Dashboard /wp-admin | 3.35 ▲0.04 | 46.37 ▼5.48 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.46 ▲1.47 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.56 ▼10.75 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.75 ▲1.90 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by BlackWebsite Wp Dark Mode
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲103 | 13.18 ▼1.20 | 3.47 ▲1.68 | 49.59 ▼2.21 |
Dashboard /wp-admin | 2,227 ▲39 | 4.89 ▼0.21 | 99.25 ▼2.55 | 40.09 ▼3.67 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.05 ▲0.04 | 40.23 ▲3.38 | 37.32 ▼0.27 |
Add New Post /wp-admin/post-new.php | 1,553 ▲32 | 18.33 ▼5.04 | 600.55 ▲6.96 | 61.19 ▲15.15 |
Media Library /wp-admin/upload.php | 1,409 ▲18 | 4.23 ▲0.02 | 97.06 ▼0.37 | 41.76 ▼5.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
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
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 43× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/blackwebsite-wp-dark-mode/plugin.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function register_setting() in wp-content/plugins/blackwebsite-wp-dark-mode/inc/predefine-setting.php:2
- > PHP Notice
Undefined variable: blackwebsite_bottom in wp-content/plugins/blackwebsite-wp-dark-mode/inc/button-position/left-button.php on line 4
- > PHP Notice
Undefined variable: blackwebsite_match_os in wp-content/plugins/blackwebsite-wp-dark-mode/inc/button-position/left-button.php on line 11
- > PHP Notice
Undefined variable: blackwebsite_widget_options in wp-content/plugins/blackwebsite-wp-dark-mode/inc/button-position/right-button.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/blackwebsite-wp-dark-mode/inc/button-position/defult-button.php on line 9
- > PHP Notice
Undefined variable: blackwebsite_right in wp-content/plugins/blackwebsite-wp-dark-mode/inc/button-position/defult-button.php on line 19
- > PHP Notice
Undefined variable: blackwebsite_bottom in wp-content/plugins/blackwebsite-wp-dark-mode/inc/button-position/left-button.php on line 20
- > PHP Notice
Undefined variable: blackwebsite_cookies in wp-content/plugins/blackwebsite-wp-dark-mode/inc/button-position/right-button.php on line 10
- > PHP Notice
Undefined variable: blackwebsite_left in wp-content/plugins/blackwebsite-wp-dark-mode/inc/button-position/left-button.php on line 22
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== blackwebsite-wp-dark-mode ===
)
blackwebsite-wp-dark-mode/plugin.php 85% from 13 tests
The main PHP script in "BlackWebsite Wp Dark Mode" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("blackwebsite-wp-dark-mode.php" instead of "plugin.php")
- 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 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin704 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 77 | 30 | 542 |
JavaScript | 1 | 4 | 2 | 96 |
CSS | 2 | 2 | 0 | 66 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin