78% cliptakes

Code Review | Cliptakes

WordPress plugin Cliptakes scored 78% from 54 tests.

About plugin

  • Plugin page: cliptakes
  • Plugin version: 1.3.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Aug 7, 2021
  • Latest release: Apr 13, 2023
  • Number of updates: 25
  • Update frequency: every 24.6 days
  • Top authors: cliptakes (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

60+ active / 1,958 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.54MB] [CPU: ▼4.30ms] Passed 4 tests

This is a short check of server-side resources used by Cliptakes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4625.85 ▼15.02
Dashboard /wp-admin3.91 ▲0.6059.28 ▲9.73
Posts /wp-admin/edit.php3.96 ▲0.6054.77 ▲3.12
Add New Post /wp-admin/post-new.php6.44 ▲0.5694.90 ▼10.50
Media Library /wp-admin/upload.php3.76 ▲0.5338.59 ▲5.19
General Settings /wp-admin/admin.php?page=cliptakes-settings3.7136.03
Recorded Interviews /wp-admin/admin.php?page=cliptakes-interviews3.7135.99
API Settings /wp-admin/admin.php?page=cliptakes-api-settings3.7135.50
Interview Templates /wp-admin/admin.php?page=cliptakes-templates3.7133.51
Email Notifications /wp-admin/admin.php?page=cliptakes-contacts3.7137.43

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
cliptakes_plugin_version
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Cliptakes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲11713.23 ▼1.451.81 ▼0.3240.38 ▼10.09
Dashboard /wp-admin2,255 ▲675.84 ▲0.9498.13 ▼8.2739.44 ▼3.82
Posts /wp-admin/edit.php2,144 ▲552.06 ▲0.0040.58 ▼3.3135.91 ▼2.46
Add New Post /wp-admin/post-new.php1,565 ▲3218.73 ▼4.46615.84 ▼19.5052.34 ▲1.30
Media Library /wp-admin/upload.php1,440 ▲554.16 ▼0.10100.09 ▼0.2442.72 ▼0.30
General Settings /wp-admin/admin.php?page=cliptakes-settings2,6969.38207.6497.92
Recorded Interviews /wp-admin/admin.php?page=cliptakes-interviews9541.9729.2425.81
API Settings /wp-admin/admin.php?page=cliptakes-api-settings9531.9628.5230.10
Interview Templates /wp-admin/admin.php?page=cliptakes-templates1,0982.1028.0626.08
Email Notifications /wp-admin/admin.php?page=cliptakes-contacts9731.9626.9527.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cliptakes-contacts
    • > Notice in wp-content/plugins/cliptakes/admin/class-cliptakes-admin.php+290
    Undefined index: get-started
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cliptakes-contacts
    • > Notice in wp-content/plugins/cliptakes/admin/class-cliptakes-admin.php+292
    Undefined index: create-free-account
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cliptakes-contacts
    • > Notice in wp-content/plugins/cliptakes/admin/partials/cliptakes-admin-display.php+45
    Undefined index: status
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cliptakes-contacts
    • > Notice in wp-content/plugins/cliptakes/admin/partials/cliptakes-admin-display.php+46
    Undefined index: product
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cliptakes-settings
    • > Notice in wp-content/plugins/cliptakes/admin/class-cliptakes-admin.php+542
    Undefined variable: CLIPTAKES_DEFAULT_SETTINGS
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cliptakes-settings
    • > Notice in wp-content/plugins/cliptakes/admin/class-cliptakes-admin.php+542
    Trying to access array offset on value of type null

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
Please fix the following items
  • 14× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/cliptakes/admin/partials/cliptakes-api-settings.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _x() in wp-content/plugins/cliptakes/public/cliptakes-interview-script-i18n.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/cliptakes/admin/partials/cliptakes-admin-display.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/cliptakes/admin/partials/cliptakes-template-editor.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/cliptakes/admin/partials/cliptakes-general-settings.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cliptakes/admin/class-interview-list-table.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/cliptakes/admin/cliptakes-plugin-page-script-i18n.php:14
    • > PHP Notice
      Undefined variable: subscription_status in wp-content/plugins/cliptakes/admin/partials/cliptakes-api-settings.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/cliptakes/admin/partials/cliptakes-contact-editor.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _x() in wp-content/plugins/cliptakes/includes/cliptakes-default-settings.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

cliptakes/cliptakes.php 92% from 13 tests

The main PHP script in "Cliptakes" version 1.3.3 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/cliptakes" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected7,441 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP275001,2543,147
JavaScript3101932,929
CSS346311,365

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity24.73
▷ Minimum class complexity1.00
▷ Maximum class complexity129.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods124
▷ Static methods21.61%
▷ Public methods9778.23%
▷ Protected methods2016.13%
▷ Private methods75.65%
Functions20
▷ Named functions1365.00%
▷ Anonymous functions735.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin