94% unreel-embed

Code Review | Unreel Embed Plugin

WordPress plugin Unreel Embed Plugin scored 94% from 54 tests.

About plugin

  • Plugin page: unreel-embed
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Nov 3, 2017
  • Latest release: Nov 4, 2017
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: unreelme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 360 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼297.61ms] Passed 4 tests

Analyzing server-side resources used by Unreel Embed Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0253.96 ▲4.49
Dashboard /wp-admin3.42 ▲0.0132.11 ▼1.12
Posts /wp-admin/edit.php3.65 ▲0.0136.89 ▲0.50
Add New Post /wp-admin/post-new.php6.89 ▼0.0893.39 ▼1,190.70
Media Library /wp-admin/upload.php3.31 ▲0.0125.08 ▲0.87

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Unreel Embed Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4715.78 ▲0.116.24 ▲0.662.96 ▲0.60
Dashboard /wp-admin2,895 ▲346.20 ▲0.02122.38 ▼11.41159.58 ▼4.43
Posts /wp-admin/edit.php2,688 ▼63.22 ▼0.0164.58 ▼0.50143.67 ▲2.33
Add New Post /wp-admin/post-new.php1,711 ▲5020.87 ▲5.25428.61 ▲1.11158.69 ▲5.02
Media Library /wp-admin/upload.php1,698 ▼05.53 ▼0.02146.71 ▲7.14189.11 ▲1.89

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unreel-embed/unreel-embed-widget.php:99

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Contributors: Plugin contributors not specified
You can take inspiration from this readme.txt

unreel-embed/unreel-embed-widget.php 92% from 13 tests

This is the main PHP file of "Unreel Embed Plugin" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("unreel-embed.php" instead of "unreel-embed-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected52 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1242652

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.57
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin