Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.50ms] Passed 4 tests
Server-side resources used by DICOM Support
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 39.71 ▼4.61 |
Dashboard /wp-admin | 3.38 ▲0.03 | 54.43 ▼17.91 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 55.37 ▲4.12 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 97.21 ▼10.27 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 39.68 ▲2.80 |
Server storage [IO: ▲5.50MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 368 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for DICOM Support
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.69 ▲0.33 | 1.77 ▼0.03 | 42.29 ▼1.13 |
Dashboard /wp-admin | 2,201 ▲24 | 5.65 ▲0.02 | 82.94 ▼9.68 | 43.37 ▼1.35 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 1.96 ▼0.04 | 38.20 ▲1.51 | 38.82 ▲2.81 |
Add New Post /wp-admin/post-new.php | 6,375 ▲4,849 | 27.65 ▲4.45 | 873.65 ▲156.79 | 58.59 ▲5.02 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.23 ▲0.03 | 96.97 ▼7.11 | 43.54 ▼6.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dicom-support/DicomSupport.php:23
- > 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 Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: dicom, html5, javascript
dicom-support/DicomSupport.php 85% from 13 tests
The principal PHP file in "DICOM Support" v. 0.9.0 is loaded by WordPress automatically on each request
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 210 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("dicom-support.php" instead of "DicomSupport.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected86,846 lines of code in 327 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 236 | 12,613 | 36,358 | 77,688 |
JSON | 39 | 54 | 0 | 3,419 |
Markdown | 34 | 1,418 | 0 | 3,236 |
TypeScript | 5 | 134 | 355 | 1,323 |
diff | 1 | 3 | 13 | 588 |
PHP | 2 | 48 | 150 | 416 |
YAML | 7 | 0 | 0 | 153 |
CSS | 2 | 6 | 0 | 20 |
make | 1 | 3 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected