72% video-playlist-and-gallery-plugin

Code Review | Cincopa video and media plug-in

WordPress plugin Cincopa video and media plug-in scored72%from 54 tests.

About plugin

  • Plugin page: video-playlist-an...
  • Plugin version: 1.158
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-6.0.1
  • WordPress version: 6.3.1
  • First release: Jan 5, 2011
  • Latest release: Mar 14, 2023
  • Number of updates: 136
  • Update frequency: every 32.7 days
  • Top authors: nicashmu (89.71%)davitcincopa (11.03%)

Code review

54 tests

User reviews

19 reviews

Install metrics

2,000+ active /1,131,708 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼1.78ms] Passed 4 tests

An overview of server-side resources used by Cincopa video and media plug-in
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1344.83 ▲1.41
Dashboard /wp-admin3.42 ▲0.1249.38 ▲2.39
Posts /wp-admin/edit.php3.48 ▲0.1248.64 ▲4.15
Add New Post /wp-admin/post-new.php5.95 ▲0.0685.26 ▼9.65
Media Library /wp-admin/upload.php3.28 ▲0.0633.66 ▼1.25
Cincopa Options /wp-admin/options-general.php?page=cincopaoptions3.2334.49

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_cincopawidget

Browser metrics Passed 4 tests

An overview of browser requirements for Cincopa video and media plug-in
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.28 ▼0.132.04 ▲0.3745.76 ▲1.20
Dashboard /wp-admin2,225 ▲485.65 ▼0.0293.74 ▲7.0779.42 ▲40.15
Posts /wp-admin/edit.php2,140 ▲402.11 ▲0.1034.03 ▲0.0234.89 ▼2.05
Add New Post /wp-admin/post-new.php6,240 ▲4,70919.16 ▼3.93866.66 ▲212.2540.53 ▼12.18
Media Library /wp-admin/upload.php1,442 ▲424.20 ▲0.0094.04 ▼12.9873.60 ▲26.54
Cincopa Options /wp-admin/options-general.php?page=cincopaoptions1,0612.2727.4343.57

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_cincopawidget
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=cincopaoptions
    • > Notice in wp-content/plugins/video-playlist-and-gallery-plugin/wp-media-cincopa.php+704
    Undefined index: csrfToken

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 take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/video-playlist-and-gallery-plugin/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/video-playlist-and-gallery-plugin/class-tgm-plugin-activation.php:2109

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=cincopaoptions
    • > Network (severe)
    https://api.cincopa.com/v2/ping.json?api_token= - Failed to load resource: the server responded with a status of 403 ()

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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:
  • Tags: Please delete some tags, you are using 49 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (Video Player - full solution to play video and playlists), #2 (Image gallery - support images and videos in same gallery), #3 (Image list pinterest - styled gallery with lightbox - support video players), #4 (Audio mobile - compatible with mobile and tablets - ipad, iphone, android etc), #5 (Audio playlist), #6 (Ligthbox), #7 (Start page), #8 (Video gallery), #9 (Video playlist), #10 (Cincopa fast access button), #11 (Cincopa fast access menu), #12 (Image list preview)
You can take inspiration from this readme.txt

video-playlist-and-gallery-plugin/wp-media-cincopa.php 85% from 13 tests

"Cincopa video and media plug-in" version 1.158's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("video-playlist-and-gallery-plugin.php" instead of "wp-media-cincopa.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected3,596 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP27161,6662,818
JavaScript2946551
CSS21835227

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity42.50
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.16
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods105
▷ Static methods54.76%
▷ Public methods8278.10%
▷ Protected methods2321.90%
▷ Private methods00.00%
Functions51
▷ Named functions51100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.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