Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/draupnir-ringmanager/draupnir.php+424
Undefined variable: options
Server metrics [RAM: ▼1.31MB] [CPU: ▼38.16ms] Passed 4 tests
This is a short check of server-side resources used by Draupnir Ringmanager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.69 ▼0.77 | 26.20 ▼14.75 |
Dashboard /wp-admin | 2.71 ▼0.64 | 27.97 ▼33.76 |
Posts /wp-admin/edit.php | 2.71 ▼0.65 | 29.34 ▼24.71 |
Add New Post /wp-admin/post-new.php | 2.71 ▼3.18 | 28.09 ▼79.42 |
Media Library /wp-admin/upload.php | 2.71 ▼0.52 | 29.38 ▼7.58 |
Server storage [IO: ▲0.09MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_draupnir_stats |
wp_draupnir |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
plugin_draupnir_settings |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Draupnir Ringmanager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.36 ▼1.02 | 1.71 ▲0.02 | 42.52 ▲2.00 |
Dashboard /wp-admin | 2,239 ▲54 | 4.98 ▼0.87 | 96.02 ▼5.48 | 81.23 ▲38.87 |
Posts /wp-admin/edit.php | 2,138 ▲49 | 2.38 ▲0.35 | 37.79 ▼1.95 | 36.29 ▲1.85 |
Add New Post /wp-admin/post-new.php | 1,543 ▲1 | 22.07 ▲3.66 | 775.49 ▲156.20 | 30.88 ▼30.13 |
Media Library /wp-admin/upload.php | 1,428 ▲37 | 4.49 ▲0.31 | 109.86 ▲12.72 | 47.22 ▲5.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/draupnir-ringmanager/draupnir.php+424
Undefined variable: options
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_draupnir
- wp_draupnir_stats
- The uninstall procedure has failed, leaving 7 options in the database
- plugin_draupnir_settings
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/draupnir-ringmanager/draupnir.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: A description for screenshot #7 is missing in draupnir-ringmanager/assets to your readme.txt
draupnir-ringmanager/draupnir.php 92% from 13 tests
The main file in "Draupnir Ringmanager" v. 1.7.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("draupnir-ringmanager.php" instead of "draupnir.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,406 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 119 | 82 | 1,406 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 182.00 |
▷ Minimum class complexity | 182.00 |
▷ Maximum class complexity | 182.00 |
Average method complexity | 7.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.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 | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon.png | 0.64KB | 0.57KB | ▼ 10.94% |