84% freecaster

Code Review | Freecaster

WordPress plugin Freecaster scored84%from 54 tests.

About plugin

  • Plugin page: freecaster
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8.1
  • WordPress version: 6.3.1
  • First release: Jan 15, 2016
  • Latest release: Sep 19, 2017
  • Number of updates: 7
  • Update frequency: every 87.7 days
  • Top authors: fcalexis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /978 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.15ms] Passed 4 tests

A check of server-side resources used by Freecaster
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.63 ▼4.08
Dashboard /wp-admin3.36 ▲0.0549.10 ▼0.61
Posts /wp-admin/edit.php3.48 ▲0.1153.09 ▲0.77
Add New Post /wp-admin/post-new.php5.94 ▲0.0598.71 ▼0.68
Media Library /wp-admin/upload.php3.28 ▲0.0540.87 ▲1.43
Freecaster /wp-admin/options-general.php?page=freecaster3.27248.51

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Freecaster
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.32 ▼0.051.67 ▼0.1143.53 ▼0.09
Dashboard /wp-admin2,199 ▲195.61 ▲0.0991.35 ▲0.0643.58 ▲3.41
Posts /wp-admin/edit.php2,112 ▲122.02 ▲0.0339.65 ▲3.7935.17 ▲0.20
Add New Post /wp-admin/post-new.php1,533 ▲523.20 ▲0.03644.77 ▼15.3951.86 ▼12.09
Media Library /wp-admin/upload.php1,412 ▲154.20 ▼0.0899.70 ▼10.6441.92 ▼3.75
Freecaster /wp-admin/options-general.php?page=freecaster9241.8324.4134.32

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/freecaster/fc_choice.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/freecaster/fc_ajax.php:6

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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: embed, live, video player, jwplayer, video...

freecaster/freecaster.php Passed 13 tests

This is the main PHP file of "Freecaster" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
68 characters long description:
This plugin allows you to embed videos from the Freecaster Platform.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin836 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP9214158666
PO File133099
CSS115071

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity3.35
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/camera.png15.88KB1.42KB▼ 91.03%
img/warning.png0.70KB0.56KB▼ 19.92%
img/background.png32.41KB20.51KB▼ 36.73%
img/problem.png0.10KB0.11KB0.00%
img/search_big_icon.png7.90KB4.92KB▼ 37.65%