94% gamipress-vimeo-integration

Code Review | GamiPress - Vimeo integration

WordPress plugin GamiPress - Vimeo integration scored 94% from 54 tests.

About plugin

  • Plugin page: gamipress-vimeo-i...
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Feb 12, 2019
  • Latest release: Jan 24, 2022
  • Number of updates: 24
  • Update frequency: every 44.9 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active / 6,626 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.02MB] [CPU: ▼292.98ms] Passed 4 tests

Analyzing server-side resources used by GamiPress - Vimeo integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0155.84 ▲5.58
Dashboard /wp-admin3.41 ▲0.0133.46 ▲0.92
Posts /wp-admin/edit.php3.65 ▲0.0137.42 ▲1.24
Add New Post /wp-admin/post-new.php6.89 ▼0.0890.93 ▼1,174.65
Media Library /wp-admin/upload.php3.30 ▲0.0123.12 ▲0.56

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for GamiPress - Vimeo integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,818 ▲6415.89 ▼0.176.58 ▲0.792.71 ▲0.17
Dashboard /wp-admin2,911 ▲506.14 ▼0.04113.06 ▼15.94153.36 ▼3.04
Posts /wp-admin/edit.php2,717 ▲233.25 ▲0.0163.03 ▼0.10142.03 ▼0.53
Add New Post /wp-admin/post-new.php1,677 ▲1615.77 ▼0.33401.23 ▼1.55156.68 ▲3.87
Media Library /wp-admin/upload.php1,724 ▲295.52 ▼0.05141.94 ▲10.20183.01 ▲4.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-vimeo-integration/gamipress-vimeo.php:219

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
Attributes that require attention:
  • Tags: There are too many tags (14 tag instead of maximum 10)
You can take inspiration from this readme.txt

gamipress-vimeo-integration/gamipress-vimeo.php 92% from 13 tests

The main file in "GamiPress - Vimeo integration" v. 1.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gamipress-vimeo-integration.php" instead of "gamipress-vimeo.php")

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
Everything looks great! No dangerous files found in this plugin728 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12160363360
SVG100252
JavaScript45930116

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods12
▷ Static methods18.33%
▷ Public methods866.67%
▷ Protected methods00.00%
▷ Private methods433.33%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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 were not PNG files found in your plugin