Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼144.82ms] Passed 4 tests
A check of server-side resources used by DICOMViewer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 23.53 ▲0.31 |
Dashboard /wp-admin | 3.07 ▲0.01 | 30.25 ▼7.91 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 27.71 ▼1.96 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 67.44 ▼568.40 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 23.03 ▼1.01 |
Server storage [IO: ▲2.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
DICOMViewer: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,848 ▲246 | 17.96 ▲2.36 | 29.32 ▲23.88 | 77.84 ▲2.03 |
Dashboard /wp-admin | 2,934 ▲35 | 6.03 ▼0.04 | 114.27 ▼18.17 | 167.32 ▼5.94 |
Posts /wp-admin/edit.php | 2,747 ▲4 | 3.23 ▲0.01 | 64.23 ▼1.79 | 141.93 ▲5.33 |
Add New Post /wp-admin/post-new.php | 3,701 ▼34 | 18.53 ▼0.36 | 446.96 ▲28.79 | 162.66 ▼5.36 |
Media Library /wp-admin/upload.php | 1,756 ▲7 | 5.53 ▲0.05 | 138.81 ▼14.86 | 179.18 ▼5.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/dicom-viewer/DICOMViewer.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: images, dcm, javascript, gallery, html5...
dicom-viewer/DICOMViewer.php 85% from 13 tests
The principal PHP file in "DICOMViewer" v. 0.1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dicom-viewer.php" instead of "DICOMViewer.php")
- Description: Keep the plugin description shorter than 140 characters (currently 239 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,029 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 373 | 813 | 1,724 |
PHP | 1 | 46 | 91 | 211 |
Sass | 1 | 6 | 0 | 65 |
CSS | 1 | 3 | 8 | 16 |
SVG | 2 | 0 | 0 | 13 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 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
There were not PNG files found in your plugin