90% support-svg

Code Review | Support SVG

WordPress plugin Support SVG scored90%from 54 tests.

About plugin

  • Plugin page: support-svg
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 4, 2023
  • Latest release: Oct 4, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: sayedulsayem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /84 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼9.71ms] Passed 4 tests

Server-side resources used by Support SVG
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.17 ▼0.59
Dashboard /wp-admin3.32 ▼0.0251.27 ▼8.14
Posts /wp-admin/edit.php3.37 ▲0.0252.73 ▼4.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.99 ▼25.03
Media Library /wp-admin/upload.php3.25 ▲0.0237.68 ▼1.07

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Support SVG
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲3114.39 ▼0.181.95 ▼0.0742.80 ▼0.68
Dashboard /wp-admin2,198 ▲185.54 ▼0.1293.71 ▲4.4041.74 ▼2.17
Posts /wp-admin/edit.php2,103 ▲32.12 ▲0.1136.37 ▼3.9138.64 ▼2.62
Add New Post /wp-admin/post-new.php1,529 ▲123.53 ▲0.38702.89 ▲70.3646.00 ▼8.86
Media Library /wp-admin/upload.php1,403 ▲64.20 ▲0.0497.07 ▼13.2444.29 ▼11.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: upload svg, svg, vector, sanitization, safe svg

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

The primary PHP file in "Support SVG" version 1.0.0 is used by WordPress to initiate all plugin functionality
42 characters long description:
Lightest plugin to upload svg in WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin84 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3216861
Markdown120023

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.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 are no PNG files in this plugin