84% allow-swf-upload

Code Review | Allow Swf Upload

WordPress plugin Allow Swf Upload scored84%from 54 tests.

About plugin

  • Plugin page: allow-swf-upload
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.8
  • WordPress version: 6.3.1
  • First release: Dec 24, 2013
  • Latest release: Dec 24, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: behrouzpc (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

800+ active /18,850 total downloads


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.64MB] [CPU: ▼19.64ms] Passed 4 tests

An overview of server-side resources used by Allow Swf Upload
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.97 ▼3.59
Dashboard /wp-admin3.32 ▲0.0245.92 ▼5.75
Posts /wp-admin/edit.php3.37 ▲0.0246.31 ▲3.01
Add New Post /wp-admin/post-new.php3.45 ▼2.4337.13 ▼57.68
Media Library /wp-admin/upload.php3.06 ▼0.1623.07 ▼11.53

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Allow Swf Upload
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.22 ▼1.134.28 ▲1.8640.78 ▼8.05
Dashboard /wp-admin2,206 ▲184.88 ▲0.00108.68 ▼10.1741.70 ▼6.02
Posts /wp-admin/edit.php2,092 ▼02.00 ▼0.0140.23 ▲1.9237.12 ▲4.74
Add New Post /wp-admin/post-new.php1,542 ▲1318.40 ▼4.78607.90 ▼59.2549.18 ▼1.38
Media Library /wp-admin/upload.php1,388 ▼34.27 ▲0.0897.86 ▼6.3840.31 ▼2.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/allow-swf-upload/allowSwfUpload.php:97

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === allow-swf-upload === )
Please take inspiration from this readme.txt

allow-swf-upload/allowSwfUpload.php 92% from 13 tests

The main PHP script in "Allow Swf Upload" version 1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("allow-swf-upload.php" instead of "allowSwfUpload.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected79 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.75
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected