89% flowplayer-platform-embed

Code Review | Flowplayer Platform Embed

WordPress plugin Flowplayer Platform Embed scored89%from 54 tests.

About plugin

  • Plugin page: flowplayer-platfo...
  • Plugin version: 0.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Mar 2, 2019
  • Latest release: Aug 31, 2020
  • Number of updates: 10
  • Update frequency: every 83.8 days
  • Top authors: underdude (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,660 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.12MB] [CPU: ▼11.27ms] Passed 4 tests

An overview of server-side resources used by Flowplayer Platform Embed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.13 ▲0.87
Dashboard /wp-admin3.40 ▲0.0545.21 ▼19.35
Posts /wp-admin/edit.php3.51 ▲0.1648.68 ▲0.96
Add New Post /wp-admin/post-new.php5.29 ▼0.6064.54 ▼27.22
Media Library /wp-admin/upload.php3.29 ▲0.0634.38 ▲0.61
Flowplayer Embed /wp-admin/options-general.php?page=flowplayer_embed3.2928.35

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Flowplayer Platform Embed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.33 ▼1.261.73 ▼0.0939.10 ▼0.97
Dashboard /wp-admin2,210 ▲226.06 ▲1.19107.33 ▼49.4442.77 ▼16.82
Posts /wp-admin/edit.php2,093 ▲42.00 ▲0.0040.75 ▲0.3334.78 ▼5.40
Add New Post /wp-admin/post-new.php1,537 ▲1122.98 ▼0.21654.45 ▼7.5451.30 ▼1.56
Media Library /wp-admin/upload.php1,392 ▲74.21 ▼0.02115.44 ▲14.0847.66 ▲6.08
Flowplayer Embed /wp-admin/options-general.php?page=flowplayer_embed8012.0325.4626.33

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
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: mp4, flowplayer, hsl, video, webm...

flowplayer-platform-embed/flowplayer-embed.php 77% from 13 tests

The main file in "Flowplayer Platform Embed" v. 0.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Name the main plugin file the same as the plugin slug ("flowplayer-platform-embed.php" instead of "flowplayer-embed.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin960 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP10105119602
JavaScript66218344
JSON10014

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions36
▷ Named functions3186.11%
▷ Anonymous functions513.89%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 are no PNG files in this plugin