78% swfput

Code Review | SWFPut - SWFlash Put

WordPress plugin SWFPut - SWFlash Put scored78%from 54 tests.

About plugin

  • Plugin page: swfput
  • Plugin version: 3.1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.5
  • WordPress version: 6.3.1
  • First release: Jul 28, 2013
  • Latest release: Aug 12, 2020
  • Number of updates: 69
  • Update frequency: every 37.3 days
  • Top authors: EdHynan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /7,178 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.65MB] [CPU: ▼3.19ms] Passed 4 tests

This is a short check of server-side resources used by SWFPut - SWFlash Put
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.06 ▲0.6036.59 ▲1.03
Dashboard /wp-admin3.97 ▲0.6747.08 ▼1.75
Posts /wp-admin/edit.php4.03 ▲0.6750.02 ▲4.15
Add New Post /wp-admin/post-new.php6.60 ▲0.7289.69 ▼16.20
Media Library /wp-admin/upload.php3.88 ▲0.6640.67 ▲8.39
SWFPut Plugin /wp-admin/options-general.php?page=swfput1_settings_page3.8135.98

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 52 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
_evh_swfput1_opt_grp
widget_swf_put_widget_evh
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for SWFPut - SWFlash Put
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲11913.96 ▼0.288.29 ▲6.5339.34 ▼0.50
Dashboard /wp-admin2,196 ▲225.54 ▼0.0582.82 ▼5.2037.34 ▼7.59
Posts /wp-admin/edit.php2,101 ▲12.01 ▼0.0136.90 ▼3.5735.24 ▼0.97
Add New Post /wp-admin/post-new.php6,626 ▲5,10025.95 ▲2.90896.10 ▲229.1966.33 ▲9.27
Media Library /wp-admin/upload.php1,407 ▲74.23 ▲0.0594.95 ▼6.0443.81 ▼0.53
SWFPut Plugin /wp-admin/options-general.php?page=swfput1_settings_page1,1691.6923.3029.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_swf_put_widget_evh
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/swfput/js/putswf_tpl.php
    • > /wp-content/plugins/swfput/mce_ifm.php
    • > /wp-content/plugins/swfput/evhflv/mingput.php
    • > /wp-content/plugins/swfput/swfput.php
  • 97× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: pixelaspect in wp-content/plugins/swfput/evhflv/mainact.inc.php on line 208
    • > PHP Notice
      Undefined variable: menudeblock5 in wp-content/plugins/swfput/evhflv/mainact.inc.php on line 800
    • > PHP Notice
      Undefined variable: barshowincr in wp-content/plugins/swfput/evhflv/mainact.inc.php on line 101
    • > PHP Notice
      Undefined variable: doloop in wp-content/plugins/swfput/evhflv/mainact.inc.php on line 75
    • > PHP Notice
      Undefined variable: swfvs in wp-content/plugins/swfput/evhflv/mainact.inc.php on line 73
    • > PHP Notice
      Undefined variable: connrejecthtml in wp-content/plugins/swfput/evhflv/mainact.inc.php on line 118
    • > PHP Notice
      Undefined variable: barheight in wp-content/plugins/swfput/evhflv/mainact.inc.php on line 81
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/swfput/php-inc/xed_form.php:37
    • > PHP Notice
      Undefined variable: progressbarlength in wp-content/plugins/swfput/evhflv/mainact.inc.php on line 94
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/swfput/js/putswf_tpl.php:462

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 Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: graphics, html5 video, video, video content, flash video...

swfput/swfput.php 85% from 13 tests

The primary PHP file in "SWFPut - SWFlash Put" version 3.1.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 209 characters long)

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
There were no executable files found in this plugin18,639 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript141,4391,9988,499
PHP161,0172,3097,645
PO File11241821,009
HTML11912724
SVG383256
make25230190
C13513169
Bourne Shell2143980
CSS252667

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity65.29
▷ Minimum class complexity1.00
▷ Maximum class complexity328.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods142
▷ Static methods6948.59%
▷ Public methods13695.77%
▷ Protected methods64.23%
▷ Private methods00.00%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants80
▷ Global constants67.50%
▷ Class constants7492.50%
▷ Public constants74100.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 were not PNG files found in your plugin