90% uploading-svgwebp-and-ico-files

Code Review | Uploading SVG, WEBP and ICO files

WordPress plugin Uploading SVG, WEBP and ICO files scored90%from 54 tests.

About plugin

  • Plugin page: uploading-svgwebp...
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: May 4, 2022
  • Latest release: Apr 3, 2023
  • Number of updates: 9
  • Update frequency: every 37.2 days
  • Top authors: dmitrylitvinov (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /3,655 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼4.05ms] Passed 4 tests

An overview of server-side resources used by Uploading SVG, WEBP and ICO files
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.46 ▼2.61
Dashboard /wp-admin3.31 ▼0.0344.50 ▼14.96
Posts /wp-admin/edit.php3.36 ▲0.0149.41 ▲1.59
Add New Post /wp-admin/post-new.php5.89 ▲0.01110.91 ▲9.23
Media Library /wp-admin/upload.php3.24 ▲0.0133.88 ▼0.21

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Uploading SVG, WEBP and ICO files
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.121.87 ▲0.1444.53 ▼0.77
Dashboard /wp-admin2,209 ▲185.89 ▲1.02107.91 ▲2.3740.87 ▲0.89
Posts /wp-admin/edit.php2,089 ▲32.06 ▲0.0439.98 ▲0.3639.35 ▲0.80
Add New Post /wp-admin/post-new.php1,533 ▼023.11 ▲0.07676.93 ▲39.3050.62 ▼1.95
Media Library /wp-admin/upload.php1,388 ▲34.22 ▼0.0195.29 ▼13.5042.12 ▼3.19

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: upload, ico, svg, webp

uploading-svgwebp-and-ico-files/uploading-svgwebp-and-ico-files.php 92% from 13 tests

The principal PHP file in "Uploading SVG, WEBP and ICO files" v. 1.2.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin36 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1171636

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.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
There were not PNG files found in your plugin