99% add-swf-support-for-media-uploader-inventivo

Code Review | Add SWF Support for Media Uploader | inventivo

WordPress plugin Add SWF Support for Media Uploader | inventivo scored 99% from 54 tests.

About plugin

  • Plugin page: add-swf-support-f...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.7.1
  • WordPress version: 5.9.2
  • First release: Oct 8, 2018
  • Latest release: Apr 30, 2021
  • Number of updates: 14
  • Update frequency: every 66.9 days
  • Top authors: inventivode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 5,636 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.88MB] [CPU: ▼314.71ms] Passed 4 tests

An overview of server-side resources used by Add SWF Support for Media Uploader | inventivo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0253.33 ▲2.65
Dashboard /wp-admin3.43 ▲0.0333.68 ▼0.40
Posts /wp-admin/edit.php3.65 ▲0.0133.83 ▼1.69
Add New Post /wp-admin/post-new.php3.52 ▼3.4529.27 ▼1,252.12
Media Library /wp-admin/upload.php3.20 ▼0.0918.65 ▼4.62

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Add SWF Support for Media Uploader | inventivo
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,841 ▲9616.15 ▲0.126.12 ▲0.362.04 ▼0.27
Dashboard /wp-admin2,965 ▲1046.03 ▼0.24124.92 ▼12.92189.57 ▲25.15
Posts /wp-admin/edit.php2,761 ▲673.25 ▼0.1163.84 ▲0.36143.35 ▲4.22
Add New Post /wp-admin/post-new.php1,799 ▲13821.32 ▲4.76429.85 ▼10.44168.99 ▲18.83
Media Library /wp-admin/upload.php1,770 ▲725.56 ▲0.08129.61 ▼14.11214.53 ▲27.63

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 90% 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: svg, svg media uploader, upload svg

add-swf-support-for-media-uploader-inventivo/inventivo-addswfsupport.php 77% from 13 tests

"Add SWF Support for Media Uploader | inventivo" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Name the main plugin file the same as the plugin slug ("add-swf-support-for-media-uploader-inventivo.php" instead of "inventivo-addswfsupport.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin124 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

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.41
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/icon-256x256-1.png33.55KB11.45KB▼ 65.87%