78% wp-widget-clipboard

Code Review | WP Widget Clipboard - Duplicate widgets intuitively

WordPress plugin WP Widget Clipboard - Duplicate widgets intuitively scored78%from 54 tests.

About plugin

  • Plugin page: wp-widget-clipboard
  • Plugin version: 1.2.15
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.3
  • WordPress version: 6.3.1
  • First release: Sep 28, 2018
  • Latest release: Nov 28, 2019
  • Number of updates: 63
  • Update frequency: every 6.8 days
  • Top authors: owlwpplugins (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /6,795 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.15ms] Passed 4 tests

An overview of server-side resources used by WP Widget Clipboard - Duplicate widgets intuitively
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0442.16 ▼6.30
Dashboard /wp-admin3.36 ▲0.0548.77 ▼3.37
Posts /wp-admin/edit.php3.41 ▲0.0549.09 ▼2.08
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.82 ▼16.86
Media Library /wp-admin/upload.php3.28 ▲0.0536.94 ▼0.55
WP Widget Clipboard /wp-admin/options-general.php?page=wpwc-widget-clipboard3.2532.28

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

WP Widget Clipboard - Duplicate widgets intuitively: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.48 ▲0.082.09 ▲0.0444.20 ▼0.07
Dashboard /wp-admin2,210 ▲255.88 ▼0.02111.43 ▲4.2242.93 ▲2.88
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0137.36 ▼3.1232.85 ▼2.64
Add New Post /wp-admin/post-new.php1,540 ▲723.35 ▼0.01686.63 ▲70.2158.41 ▲10.31
Media Library /wp-admin/upload.php1,395 ▲104.26 ▲0.08100.97 ▼4.0240.68 ▼5.49
WP Widget Clipboard /wp-admin/options-general.php?page=wpwc-widget-clipboard1,0412.0334.3861.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-widget-clipboard/includes/views/languages/ja/donate-guide.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-widget-clipboard/includes/views/languages/ja/usage-guide.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-widget-clipboard/includes/views/donate-guide.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-widget-clipboard/includes/views/languages/ja/upgrade-guide.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-widget-clipboard/wp-widget-clipboard.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-widget-clipboard/includes/views/usage-guide.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-widget-clipboard/includes/views/upgrade-guide.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=wpwc-widget-clipboard
    • > Network (severe)
    wp-content/plugins/wp-widget-clipboard/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=wpwc-widget-clipboard
    • > Network (severe)
    wp-content/plugins/wp-widget-clipboard/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=wpwc-widget-clipboard
    • > Network (severe)
    wp-content/plugins/wp-widget-clipboard/css/images/ui-bg_glass_65_ffffff_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=wpwc-widget-clipboard
    • > Network (severe)
    wp-content/plugins/wp-widget-clipboard/css/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

wp-widget-clipboard/wp-widget-clipboard.php Passed 13 tests

"WP Widget Clipboard - Duplicate widgets intuitively" version 1.2.15's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
53 characters long description:
The Clipboard plugin to copy and paste widgets easily

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,349 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP820993708
CSS557158540
PO File2274787
SVG10013
JSON1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
19 compressed PNG files occupy 0.18MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/views/upgrade_feature_2_1_collective_selection.png7.37KB5.87KB▼ 20.31%
includes/views/languages/ja/upgrade_feature_1_1_favo_click_add_favo_link_ja.png9.38KB9.80KB0.00%
includes/views/upgrade_feature_1_4_favo_pasted_favo_widget.png19.50KB20.24KB0.00%
includes/views/upgrade_feature_1_1_favo_click_add_favo_link.png9.39KB9.87KB0.00%
includes/views/usage_1_2_multidup_drag_and_drop_copied_widgets.png9.41KB9.18KB▼ 2.41%