84% swf-upload-enabler

Code Review | Swf Upload Enabler

WordPress plugin Swf Upload Enabler scored84%from 54 tests.

About plugin

  • Plugin page: swf-upload-enabler
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 24, 2016
  • Latest release: Mar 23, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: adiian (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /5,287 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Analyzing server-side resources used by Swf Upload Enabler
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.47 ▼5.41
Dashboard /wp-admin3.31 ▲0.0045.12 ▼5.76
Posts /wp-admin/edit.php3.36 ▲0.0047.81 ▲2.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.75 ▼8.68
Media Library /wp-admin/upload.php3.24 ▲0.0036.59 ▲3.11

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

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

Browser metrics Passed 4 tests

Swf Upload Enabler: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.031.68 ▼0.0545.03 ▼2.45
Dashboard /wp-admin2,209 ▲215.91 ▲0.8799.70 ▼15.7438.61 ▼4.96
Posts /wp-admin/edit.php2,089 ▲32.01 ▲0.0434.86 ▼1.4031.99 ▼5.75
Add New Post /wp-admin/post-new.php1,514 ▼017.40 ▼0.14662.94 ▼0.5752.77 ▲0.60
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0494.06 ▼5.0741.87 ▼1.23

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/swf-upload-enabler/swf-upload-enabler.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === swf-upload-enabler === )
The official readme.txt might help

swf-upload-enabler/swf-upload-enabler.php Passed 13 tests

Analyzing the main PHP file in "Swf Upload Enabler" version 1.0
50 characters long description:
Allow user to upload SWF file in the Upload panel.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1587

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected