84% meks-video-importer

Code Review | Meks Video Importer

WordPress plugin Meks Video Importer scored84%from 54 tests.

About plugin

  • Plugin page: meks-video-importer
  • Plugin version: 1.0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.3
  • WordPress version: 6.3.1
  • First release: Jan 17, 2018
  • Latest release: Sep 11, 2023
  • Number of updates: 26
  • Update frequency: every 80.3 days
  • Top authors: mekshq (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

3,000+ active /40,362 total downloads

Benchmarks

Plugin footprint 83% from 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.20MB] [CPU: ▼3.31ms] Passed 4 tests

This is a short check of server-side resources used by Meks Video Importer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.09 ▲0.85
Dashboard /wp-admin3.61 ▲0.3151.32 ▼0.07
Posts /wp-admin/edit.php3.67 ▲0.3150.52 ▼0.37
Add New Post /wp-admin/post-new.php6.13 ▲0.2588.77 ▼13.64
Media Library /wp-admin/upload.php3.48 ▲0.2547.06 ▲12.74
Meks Video Importer /wp-admin/tools.php?page=meks_video_importer3.37251.51

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Meks Video Importer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.142.06 ▲0.0443.59 ▲2.57
Dashboard /wp-admin2,202 ▲285.57 ▼0.1092.68 ▲5.4839.49 ▼5.26
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0740.39 ▲1.9935.15 ▼1.20
Add New Post /wp-admin/post-new.php1,531 ▲522.99 ▼0.53658.78 ▲21.1459.91 ▲0.97
Media Library /wp-admin/upload.php1,404 ▲14.22 ▲0.01100.21 ▲0.6546.43 ▼1.93
Meks Video Importer /wp-admin/tools.php?page=meks_video_importer9132.0623.8729.71

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/meks-video-importer/includes/class.meks-video-importer-list-table.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/meks-video-importer/partials/fetch.php:1
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/meks-video-importer/includes/class.meks-video-importer-list-table.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function meks_video_importer_get_import_options() in wp-content/plugins/meks-video-importer/partials/vimeo.php:2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/meks-video-importer/includes/class.meks-video-importer-import.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/meks-video-importer/partials/templates.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Meks_Video_Importer_Youtube' not found in wp-content/plugins/meks-video-importer/partials/youtube-settings.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/meks-video-importer/partials/tabs.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/meks-video-importer/partials/title.php:3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/meks-video-importer/includes/class.meks-video-importer-import.php on line 3

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed: The official readme.txt is a good inspiration

meks-video-importer/meks-video-importer.php Passed 13 tests

"Meks Video Importer" version 1.0.11's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
92 characters long description:
Easily import YouTube and Vimeo videos in bulk to your posts, pages or any custom post type.

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
There were no executable files found in this plugin2,353 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP214687191,830
JavaScript2135176408
CSS1203100
PO File10015

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity25.50
▷ Minimum class complexity2.00
▷ Maximum class complexity54.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes225.00%
Methods84
▷ Static methods78.33%
▷ Public methods5160.71%
▷ Protected methods22.38%
▷ Private methods3136.90%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin