94% 123on-video-embedding

Code Review | 123on Video Embedding

WordPress plugin 123on Video Embedding scored 94% from 54 tests.

About plugin

  • Plugin page: 123on-video-embed...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.5
  • WordPress version: 5.9.2
  • First release: Jan 9, 2018
  • Latest release: May 18, 2018
  • Number of updates: 6
  • Update frequency: every 21.7 days
  • Top authors: 123on (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 770 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Server-side resources used by 123on Video Embedding
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0252.67 ▲1.87
Dashboard /wp-admin3.42 ▲0.0134.54 ▲0.29
Posts /wp-admin/edit.php3.65 ▲0.0138.35 ▼0.05
Add New Post /wp-admin/post-new.php6.92 ▼0.0896.69 ▼1,165.18
Media Library /wp-admin/upload.php3.30 ▲0.0124.15 ▼0.51

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for 123on Video Embedding
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.94 ▲0.286.88 ▲0.812.90 ▲0.46
Dashboard /wp-admin2,895 ▲346.10 ▼0.11121.28 ▼23.26161.91 ▼0.95
Posts /wp-admin/edit.php2,691 ▼03.24 ▲0.0161.87 ▲0.42137.92 ▼5.25
Add New Post /wp-admin/post-new.php1,758 ▲722.05 ▲0.40439.16 ▼21.23157.96 ▼0.19
Media Library /wp-admin/upload.php1,698 ▼05.55 ▲0.04136.86 ▼11.62184.67 ▲0.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/123on-video-embedding/123on-video-embedding.php:18

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 on the user side


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Contributors: Contributors not specified
You can take inspiration from this readme.txt

123on-video-embedding/123on-video-embedding.php Passed 13 tests

"123on Video Embedding" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
41 characters long description:
Easily embed 123on videos by pasting URLs

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
There were no executable files found in this plugin6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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
There were not PNG files found in your plugin