89% 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 scored89%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: 6.3.1
  • 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

100+ active /6,453 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.66MB] [CPU: ▼24.16ms] Passed 4 tests

A check of server-side resources used by Add SWF Support for Media Uploader | inventivo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.25 ▼8.24
Dashboard /wp-admin3.31 ▼0.0351.37 ▼14.88
Posts /wp-admin/edit.php3.37 ▲0.0149.87 ▼1.08
Add New Post /wp-admin/post-new.php3.44 ▼2.4440.24 ▼67.10
Media Library /wp-admin/upload.php3.05 ▼0.1729.74 ▼6.40

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Add SWF Support for Media Uploader | inventivo
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,865 ▲9414.27 ▲0.122.07 ▲0.2042.49 ▼2.05
Dashboard /wp-admin2,246 ▲665.60 ▼0.0295.39 ▼5.9660.70 ▲19.72
Posts /wp-admin/edit.php2,157 ▲572.12 ▲0.1041.12 ▲0.5533.23 ▼3.69
Add New Post /wp-admin/post-new.php1,576 ▲5023.12 ▼0.37689.16 ▼33.89141.45 ▲79.86
Media Library /wp-admin/upload.php1,451 ▲514.13 ▼0.10103.66 ▲7.9673.53 ▲31.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
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 just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

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

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

The primary PHP file in "Add SWF Support for Media Uploader | inventivo" version 1.0.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-swf-support-for-media-uploader-inventivo.php" instead of "inventivo-addswfsupport.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin124 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP1132771
Markdown125028
JSON10014
Sass11010
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for 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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ 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

Using a strong compression for your PNG files is a great way to speed-up your plugin
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%