84% live-copy-paste

Code Review | Live Copy Paste Elementor Addon - Cross Domain Copy Paste, Copy Local to Cloud, Copy Paste Elementor Section

WordPress plugin Live Copy Paste Elementor Addon - Cross Domain Copy Paste, Copy Local to Cloud, Copy Paste Elementor Section scored84%from 54 tests.

About plugin

  • Plugin page: live-copy-paste
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.2.2
  • WordPress version: 6.3.1
  • First release: May 17, 2022
  • Latest release: Jul 23, 2023
  • Number of updates: 15
  • Update frequency: every 28.9 days
  • Top authors: bdthemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

3,000+ active /14,980 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.63ms] Passed 4 tests

A check of server-side resources used by Live Copy Paste Elementor Addon - Cross Domain Copy Paste, Copy Local to Cloud, Copy Paste Elementor Section
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0943.70 ▲3.56
Dashboard /wp-admin3.38 ▲0.0851.67 ▼6.02
Posts /wp-admin/edit.php3.50 ▲0.1450.04 ▲2.03
Add New Post /wp-admin/post-new.php5.96 ▲0.0888.51 ▼14.07
Media Library /wp-admin/upload.php3.31 ▲0.0840.59 ▲7.27

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Live Copy Paste Elementor Addon - Cross Domain Copy Paste, Copy Local to Cloud, Copy Paste Elementor Section
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.67 ▼0.634.70 ▲2.9743.41 ▼8.64
Dashboard /wp-admin2,221 ▲334.81 ▼0.06111.64 ▼2.6138.61 ▼3.78
Posts /wp-admin/edit.php2,113 ▲242.02 ▼0.0336.85 ▼5.4032.18 ▼3.54
Add New Post /wp-admin/post-new.php1,527 ▲1317.63 ▲0.19597.70 ▼95.8550.97 ▼3.72
Media Library /wp-admin/upload.php1,406 ▲184.26 ▲0.1094.70 ▼14.4842.47 ▼3.13

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/live-copy-paste/classes/class-live-copy-paste-magic-btn.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/live-copy-paste/classes/class-live-copy-paste-loader.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/live-copy-paste/classes/class-live-copy-paste-btn.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: magic copy, duplicator, live paste, elementor addons, copy paste...

live-copy-paste/live-copy-paste.php 85% from 13 tests

The entry point to "Live Copy Paste Elementor Addon - Cross Domain Copy Paste, Copy Local to Cloud, Copy Paste Elementor Section" version 1.2.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 173 characters long)
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0.0" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,321 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP716068625
JavaScript33931525
CSS1317171

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity13.67
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods41
▷ Static methods24.88%
▷ Public methods3380.49%
▷ Protected methods512.20%
▷ Private methods37.32%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ 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