94% pepro-noconflict-video

Code Review | PeproDev noConflict Video

WordPress plugin PeproDev noConflict Video scored 94% from 54 tests.

About plugin

  • Plugin page: pepro-noconflict-...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 5.9.2
  • First release: Jul 15, 2021
  • Latest release: Jan 26, 2022
  • Number of updates: 8
  • Update frequency: every 24.5 days
  • Top authors: peprodev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 156 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼294.52ms] Passed 4 tests

An overview of server-side resources used by PeproDev noConflict Video
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0860.60 ▲2.43
Dashboard /wp-admin3.47 ▲0.0637.16 ▼2.05
Posts /wp-admin/edit.php3.69 ▲0.0541.08 ▲0.72
Add New Post /wp-admin/post-new.php6.93 ▼0.04100.69 ▼1,176.97
Media Library /wp-admin/upload.php3.34 ▲0.0529.22 ▲0.23

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for PeproDev noConflict Video
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,798 ▲4415.97 ▲0.246.83 ▲0.972.80 ▲0.54
Dashboard /wp-admin2,891 ▲406.16 ▼0.14116.48 ▼18.21154.58 ▼4.22
Posts /wp-admin/edit.php2,694 ▲373.23 ▼0.0262.11 ▼1.85140.81 ▼4.16
Add New Post /wp-admin/post-new.php1,755 ▲12021.95 ▲3.77464.43 ▼16.04157.33 ▲5.57
Media Library /wp-admin/upload.php1,701 ▲65.53 ▲0.03137.08 ▼18.17185.77 ▼33.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller 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
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/pepro-noconflict-video/pepro-video.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: video, visual composer, wpbakery page builder, video widget, functionality

pepro-noconflict-video/pepro-video.php 85% from 13 tests

The main file in "PeproDev noConflict Video" v. 1.2.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:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("pepro-noconflict-video.php" instead of "pepro-video.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin445 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP11326229
PO File1252868
JavaScript12950
SVG14047
CSS121044
Markdown1306
HTML1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
PNG images were not found in this plugin