94% video2post

Code Review | Video2Post

WordPress plugin Video2Post scored 94% from 54 tests.

About plugin

  • Plugin page: video2post
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.5
  • WordPress version: 5.8.1
  • First release: Dec 15, 2020
  • Latest release: Dec 15, 2020
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: ipsilondev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 115 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
This plugin's installer ran successfully

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

Server-side resources used by Video2Post
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1439.97 ▲20.89
Dashboard /wp-admin3.09 ▲0.0347.96 ▲1.84
Posts /wp-admin/edit.php3.14 ▲0.0351.23 ▲13.13
Add New Post /wp-admin/post-new.php5.45 ▲0.0193.89 ▼591.15
Media Library /wp-admin/upload.php3.03 ▲0.0333.80 ▼2.69

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Video2Post: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,699 ▲9316.13 ▲0.628.51 ▲0.0952.70 ▲4.45
Dashboard /wp-admin2,993 ▲595.87 ▼0.16145.04 ▼16.06113.06 ▼6.37
Posts /wp-admin/edit.php2,756 ▲172.69 ▲0.0063.68 ▼5.7596.23 ▼2.07
Add New Post /wp-admin/post-new.php1,696 ▲9218.79 ▼0.05379.01 ▼20.16120.78 ▲4.45
Media Library /wp-admin/upload.php1,827 ▲205.01 ▼0.02162.33 ▲2.25124.39 ▼1.49

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 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video2post/video2post.php:153

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: audio, import, video, podcast, word...

video2post/video2post.php Passed 13 tests

"Video2Post" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
47 characters long description:
Import Video2Post project into a wordpress post

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
No dangerous file extensions were detected138 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1119133
Markdown1404
JSON1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin