83% video-playlist-and-gallery-plugin

Code Review | Cincopa video and media plug-in

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

About plugin

  • Plugin page: video-playlist-an...
  • Plugin version: 1.154
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-5.7
  • WordPress version: 5.8.1
  • First release: Jan 5, 2011
  • Latest release: Jul 9, 2021
  • Number of updates: 131
  • Update frequency: every 29.3 days
  • Top authors: nicashmu (93.13%)davitcincopa (7.63%)

Code review

54 tests

User reviews

52 reviews

Install metrics

4,000+ active / 1,120,893 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.11MB] [CPU: ▼138.13ms] 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 /2.95 ▲0.1238.34 ▲5.94
Dashboard /wp-admin3.17 ▲0.1249.88 ▲1.16
Posts /wp-admin/edit.php3.29 ▲0.1848.22 ▲3.40
Add New Post /wp-admin/post-new.php5.53 ▲0.1090.84 ▼558.00
Media Library /wp-admin/upload.php3.12 ▲0.1234.55 ▲0.91

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 1 new option
New WordPress options
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 /3,759 ▲16316.22 ▲0.629.03 ▼1.0044.95 ▼0.94
Dashboard /wp-admin3,022 ▲885.92 ▼0.23140.39 ▼15.83124.70 ▲10.66
Posts /wp-admin/edit.php2,794 ▲552.71 ▼0.0166.17 ▼4.0686.32 ▲1.01
Add New Post /wp-admin/post-new.php1,661 ▲4621.64 ▲0.20331.13 ▲38.82140.69 ▲22.56
Media Library /wp-admin/upload.php1,803 ▲525.02 ▲0.04139.30 ▼27.54142.47 ▲23.39

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 1 option in the database
    • widget_cincopawidget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-playlist-and-gallery-plugin/wp-media-cincopa.php:55

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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:
  • 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)
  • Tags: Please delete some tags, you are using 49 tag instead of maximum 10
You can take inspiration from this readme.txt

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

"Cincopa video and media plug-in" version 1.154'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")

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 detected1,301 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP119583658
JavaScript2746506
CSS21629137

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.41
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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