90% heic-support

Code Review | HEIC Support

WordPress plugin HEIC Support scored90%from 54 tests.

About plugin

  • Plugin page: heic-support
  • Plugin version: 2.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3.2
  • WordPress version: 6.3.1
  • First release: Nov 16, 2022
  • Latest release: Oct 16, 2023
  • Number of updates: 15
  • Update frequency: every 22.3 days
  • Top authors: salzano (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /4,089 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.12ms] Passed 4 tests

Server-side resources used by HEIC Support
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0744.84 ▼0.32
Dashboard /wp-admin3.37 ▲0.0749.30 ▼0.74
Posts /wp-admin/edit.php3.42 ▲0.0646.03 ▼2.74
Add New Post /wp-admin/post-new.php5.95 ▲0.0787.67 ▼4.67
Media Library /wp-admin/upload.php3.29 ▲0.0736.51 ▲1.55

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for HEIC Support
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.31 ▲0.041.83 ▼0.5443.19 ▼2.45
Dashboard /wp-admin2,195 ▲185.65 ▼0.0294.49 ▼5.9041.81 ▼1.60
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0433.51 ▼6.1835.58 ▲1.20
Add New Post /wp-admin/post-new.php1,526 ▼022.90 ▲0.15639.61 ▼67.8257.57 ▼0.98
Media Library /wp-admin/upload.php1,400 ▼04.27 ▲0.06107.38 ▲2.1248.70 ▼0.11

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: iphone, heic, webp

heic-support/heic-support.php Passed 13 tests

The main PHP script in "HEIC Support" version 2.1.1 is automatically included on every request by WordPress
111 characters long description:
Allows .heic uploads to the Media Library. Creates .webp or .jpg copies of .heic images when they are uploaded.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected327 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP144167310
Markdown111017

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.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%
Methods18
▷ Static methods422.22%
▷ Public methods1477.78%
▷ Protected methods422.22%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin