84% record-screen

Code Review | Screen Recorder

WordPress plugin Screen Recorder scored84%from 54 tests.

About plugin

  • Plugin page: record-screen
  • Plugin version: 1.03
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7.2
  • WordPress version: 6.3.1
  • First release: Aug 25, 2020
  • Latest release: Jun 6, 2021
  • Number of updates: 6
  • Update frequency: every 47.7 days
  • Top authors: proxymis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,224 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.22MB] [CPU: ▼19.77ms] Passed 4 tests

An overview of server-side resources used by Screen Recorder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.82 ▼0.81
Dashboard /wp-admin3.08 ▼0.2228.51 ▼18.26
Posts /wp-admin/edit.php3.22 ▼0.1433.13 ▼15.25
Add New Post /wp-admin/post-new.php5.46 ▼0.4263.37 ▼40.52
Media Library /wp-admin/upload.php3.15 ▼0.0828.26 ▼5.05

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: 1 new table, 6 new options
New tables
wp_screenRecorder
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Screen Recorder: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.57 ▼1.121.79 ▼0.1142.88 ▲4.21
Dashboard /wp-admin2,218 ▲304.87 ▼0.03121.92 ▲7.8540.18 ▼1.54
Posts /wp-admin/edit.php2,101 ▲122.06 ▲0.0340.69 ▼1.3334.48 ▲0.69
Add New Post /wp-admin/post-new.php6,244 ▲4,70226.14 ▲8.19864.56 ▲252.6554.38 ▼9.98
Media Library /wp-admin/upload.php1,394 ▲34.19 ▼0.0297.34 ▼3.0541.63 ▼3.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/record-screen/screenRecorder.php:156

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 is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in record-screen/assets to your readme.txt
You can look at the official readme.txt

record-screen/screenRecorder.php 92% from 13 tests

"Screen Recorder" version 1.03's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("record-screen.php" instead of "screenRecorder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected888 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP14815402
CSS2352264
JavaScript52153222

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected