74% woo-cmp-flash-video-player

Code Review | Woo CMP Flash Video Player

WordPress plugin Woo CMP Flash Video Player scored74%from 54 tests.

About plugin

  • Plugin page: woo-cmp-flash-vid...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Jun 9, 2013
  • Latest release: Jun 21, 2013
  • Number of updates: 6
  • Update frequency: every 2.0 days
  • Top authors: thundernet8 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,682 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.01MB] [CPU: ▼0.41ms] Passed 4 tests

An overview of server-side resources used by Woo CMP Flash Video Player
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.96 ▲3.59
Dashboard /wp-admin3.31 ▲0.0147.19 ▼3.94
Posts /wp-admin/edit.php3.36 ▲0.0144.60 ▲0.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.31 ▲1.82
Media Library /wp-admin/upload.php3.23 ▲0.0137.63 ▼0.33

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Woo CMP Flash Video Player
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.76 ▲0.391.84 ▼0.2944.56 ▼9.04
Dashboard /wp-admin2,209 ▲214.82 ▼1.23102.57 ▼12.7141.96 ▼0.97
Posts /wp-admin/edit.php2,092 ▼02.02 ▲0.0338.37 ▼0.5630.40 ▼3.20
Add New Post /wp-admin/post-new.php1,538 ▲2423.26 ▼0.21614.85 ▼66.8952.24 ▼12.64
Media Library /wp-admin/upload.php1,385 ▼34.29 ▲0.1094.52 ▼6.9342.51 ▼2.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/woo-cmp-flash-video-player/woocmp.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Player in action)
You can look at the official readme.txt

woo-cmp-flash-video-player/woocmp.php 92% from 13 tests

The principal PHP file in "Woo CMP Flash Video Player" v. 1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-cmp-flash-video-player.php" instead of "woocmp.php")

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Please make sure to remedy the following
  • You should never include executable (binary) or otherwise dangerous files in your plugin
    • .as - Adobe Flash ActionScript File in Adobe Flash
      • wp-content/plugins/woo-cmp-flash-video-player/plugins/ApiExample.as
142 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
ActionScript1382979
PHP161233
XML27929
JavaScript10131

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.28MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png289.51KB80.66KB▼ 72.14%
logo.png0.67KB0.74KB0.00%