84% dicom-support

Code Review | DICOM Support

WordPress plugin DICOM Support scored84%from 54 tests.

About plugin

  • Plugin page: dicom-support
  • Plugin version: 0.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1
  • WordPress version: 6.3.1
  • First release: Oct 21, 2015
  • Latest release: Feb 17, 2023
  • Number of updates: 115
  • Update frequency: every 23.3 days
  • Top authors: ivmartel (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /3,845 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.71 ▼4.61
Dashboard /wp-admin3.38 ▲0.0354.43 ▼17.91
Posts /wp-admin/edit.php3.43 ▲0.0755.37 ▲4.12
Add New Post /wp-admin/post-new.php5.96 ▲0.0797.21 ▼10.27
Media Library /wp-admin/upload.php3.30 ▲0.0739.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.69 ▲0.331.77 ▼0.0342.29 ▼1.13
Dashboard /wp-admin2,201 ▲245.65 ▲0.0282.94 ▼9.6843.37 ▼1.35
Posts /wp-admin/edit.php2,103 ▲61.96 ▼0.0438.20 ▲1.5138.82 ▲2.81
Add New Post /wp-admin/post-new.php6,375 ▲4,84927.65 ▲4.45873.65 ▲156.7958.59 ▲5.02
Media Library /wp-admin/upload.php1,403 ▼04.23 ▲0.0396.97 ▼7.1143.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

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript23612,61336,35877,688
JSON395403,419
Markdown341,41803,236
TypeScript51343551,323
diff1313588
PHP248150416
YAML700153
CSS26020
make1303

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 code0.32
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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