Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼6.26ms] Passed 4 tests
A check of server-side resources used by WP Night Mode
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 43.07 ▼1.37 |
Dashboard /wp-admin | 3.39 ▲0.05 | 51.26 ▼12.26 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 47.10 ▼2.34 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 90.67 ▼9.08 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 36.12 ▲0.12 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Night Mode
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲136 | 13.47 ▼0.81 | 11.62 ▲9.56 | 42.07 ▼3.23 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▼0.05 | 98.95 ▲6.29 | 44.14 ▼0.68 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.08 | 32.46 ▼2.29 | 34.43 ▼3.33 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 23.16 ▲0.06 | 650.64 ▼20.15 | 76.92 ▲28.44 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.18 ▲0.08 | 97.94 ▼22.23 | 41.59 ▼8.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-night-mode/public/partials/wp-night-mode-public-display.php
- > /wp-content/plugins/wp-night-mode/admin/partials/wp-night-mode-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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
Attributes that require attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
wp-night-mode/wp-night-mode.php Passed 13 tests
The main PHP script in "WP Night Mode" version 1.0.6 is automatically included on every request by WordPress
126 characters long description:
Allow users to change the website style while reading at night, enabling them to easily read and spend more time on your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,386 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 20 | 38 | 849 |
PHP | 12 | 185 | 682 | 425 |
JavaScript | 2 | 17 | 41 | 79 |
Markdown | 1 | 20 | 0 | 33 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 3.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin