Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.92ms] Passed 4 tests
This is a short check of server-side resources used by DX Dark Site
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 45.42 ▲5.11 |
Dashboard /wp-admin | 3.35 ▲0.01 | 51.32 ▼13.02 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 56.45 ▲5.58 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.90 ▼13.27 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.03 ▼2.49 |
Dark Site /wp-admin/options-general.php?page=dx-darksite-settings | 3.29 | 40.95 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for DX Dark Site
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲197 | 14.65 ▼0.10 | 1.80 ▲0.05 | 42.51 ▲1.74 |
Dashboard /wp-admin | 2,365 ▲159 | 6.46 ▲0.54 | 130.59 ▲22.57 | 40.41 ▼0.64 |
Posts /wp-admin/edit.php | 2,267 ▲167 | 3.62 ▲1.61 | 54.91 ▲12.65 | 37.40 ▲0.60 |
Add New Post /wp-admin/post-new.php | 1,529 ▼7 | 17.57 ▼5.29 | 640.97 ▼17.87 | 28.42 ▼31.92 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.31 ▼0.02 | 92.29 ▼22.10 | 48.54 ▲1.02 |
Dark Site /wp-admin/options-general.php?page=dx-darksite-settings | 1,386 | 6.26 | 114.48 | 53.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dx-darksite-settings
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 0% 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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/devrix-dark-site/dx-dark-site.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/devrix-dark-site/dx-menu-creation/dx-menu-creation.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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 to be fixed:
- Screenshots: Add a description for screenshot #2 in devrix-dark-site/assets to your readme.txt
devrix-dark-site/dx-dark-site.php 85% from 13 tests
The main PHP file in "DX Dark Site" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("devrix-dark-site.php" instead of "dx-dark-site.php")
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
Everything looks great! No dangerous files found in this plugin244 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 31 | 61 | 177 |
CSS | 1 | 12 | 0 | 67 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.18MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/error-64.png | 1.15KB | 1.05KB | ▼ 8.82% |
assets/screenshot-2.png | 94.11KB | 24.93KB | ▼ 73.51% |
assets/images/error-64-warning.png | 2.66KB | 0.86KB | ▼ 67.52% |
assets/screenshot-1.png | 89.47KB | 24.68KB | ▼ 72.42% |