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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.57MB] [CPU: ▼18.23ms] Passed 4 tests
Analyzing server-side resources used by Night Eye - Dark Mode Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 42.23 ▲1.16 |
Dashboard /wp-admin | 3.42 ▲0.07 | 48.39 ▼12.75 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 50.79 ▼1.38 |
Add New Post /wp-admin/post-new.php | 3.29 ▼2.59 | 36.23 ▼58.78 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.37 ▼0.00 |
Server storage [IO: ▲2.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 79 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Night Eye - Dark Mode Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲129 | 14.03 ▼0.32 | 38.44 ▲36.87 | 43.82 ▲5.03 |
Dashboard /wp-admin | 2,235 ▲55 | 5.58 ▼0.08 | 84.40 ▼3.75 | 36.92 ▼3.95 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.03 ▲0.04 | 38.42 ▼1.75 | 36.67 ▲0.11 |
Add New Post /wp-admin/post-new.php | 1,544 ▲16 | 23.11 ▼0.24 | 675.17 ▼34.81 | 52.34 ▼7.16 |
Media Library /wp-admin/upload.php | 1,443 ▲43 | 4.24 ▲0.07 | 103.26 ▼0.74 | 45.76 ▼1.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Contributors: Contributors not specified
- Tags: There are too many tags (11 tag instead of maximum 10)
night-eye/night-eye.php 92% from 13 tests
The main PHP file in "Night Eye - Dark Mode Plugin" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)
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
Success! There were no dangerous files found in this plugin46,957 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 27 | 11,056 | 4,566 | 45,220 |
PHP | 30 | 346 | 259 | 1,005 |
CSS | 6 | 140 | 9 | 704 |
JSON | 3 | 0 | 0 | 17 |
Markdown | 1 | 5 | 0 | 11 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 45 | 57.69% |
▷ Public methods | 77 | 98.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.28% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 24 | |
▷ Global constants | 1 | 4.17% |
▷ Class constants | 23 | 95.83% |
▷ Public constants | 19 | 82.61% |
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
No PNG files were detected