100% knovio-knowledgevision-embed

Code Review | Knovio-KnowledgeVision Embed

WordPress plugin Knovio-KnowledgeVision Embed scored 100% from 54 tests.

About plugin

  • Plugin page: knovio-knowledgev...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 5.8.1
  • First release: Jan 28, 2016
  • Latest release: Jan 28, 2016
  • Number of updates: 6
  • Update frequency: every 2.2 days
  • Top authors: knovio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,011 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
Install script ran successfully

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

An overview of server-side resources used by Knovio-KnowledgeVision Embed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0131.15 ▲3.74
Dashboard /wp-admin3.07 ▲0.0145.24 ▲1.39
Posts /wp-admin/edit.php3.12 ▲0.0145.50 ▲2.50
Add New Post /wp-admin/post-new.php5.43 ▼0.0194.18 ▼563.16
Media Library /wp-admin/upload.php3.01 ▲0.0129.31 ▼4.63

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Knovio-KnowledgeVision Embed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,681 ▲8515.92 ▲0.358.76 ▼0.6948.91 ▲3.08
Dashboard /wp-admin2,970 ▲395.99 ▲0.01130.32 ▼6.27113.63 ▲10.50
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0262.48 ▼1.7284.77 ▼4.32
Add New Post /wp-admin/post-new.php1,676 ▲17618.87 ▲0.19368.17 ▲4.09101.52 ▼3.01
Media Library /wp-admin/upload.php1,804 ▼35.05 ▼0.00145.49 ▲1.34120.44 ▲4.90

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: video, presentations

knovio-knowledgevision-embed/knovio-knowledgevision-embed.php Passed 13 tests

The entry point to "Knovio-KnowledgeVision Embed" version 1.0.0 is a PHP file that has certain tags in its header comment area
120 characters long description:
This free plugin makes it easy to embed any Knovio or KnowledgeVision online presentation onto a WordPress page or post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin93 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1265493

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin