74% doubly

Code Review | Doubly - Cross Domain Copy Paste for WordPress

WordPress plugin Doubly - Cross Domain Copy Paste for WordPress scored74%from 54 tests.

About plugin

  • Plugin page: doubly
  • Plugin version: 1.0.44
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3.2
  • WordPress version: 6.3.1
  • First release: Jun 9, 2022
  • Latest release: Oct 18, 2023
  • Number of updates: 36
  • Update frequency: every 13.8 days
  • Top authors: unitecms (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

7,000+ active /33,952 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.63MB] [CPU: ▼5.06ms] Passed 4 tests

A check of server-side resources used by Doubly - Cross Domain Copy Paste for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.11 ▲0.6440.17 ▲1.36
Dashboard /wp-admin3.96 ▲0.6149.59 ▼6.63
Posts /wp-admin/edit.php4.01 ▲0.6645.57 ▼2.70
Add New Post /wp-admin/post-new.php6.49 ▲0.6183.93 ▼12.25
Media Library /wp-admin/upload.php3.88 ▲0.6540.52 ▲2.77
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius4.2536.92

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 253 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
fs_debug_mode
fs_accounts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
fs_active_plugins
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Doubly - Cross Domain Copy Paste for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,685 ▲93913.48 ▼0.899.79 ▲7.9932.44 ▼9.77
Dashboard /wp-admin2,654 ▲4745.66 ▲0.0081.91 ▼4.1372.69 ▲35.00
Posts /wp-admin/edit.php2,563 ▲4602.15 ▲0.1734.67 ▼4.5535.89 ▼2.83
Add New Post /wp-admin/post-new.php1,936 ▲39923.08 ▲4.84751.76 ▲78.5658.05 ▼12.27
Media Library /wp-admin/upload.php1,847 ▲4444.31 ▲0.15100.72 ▼15.3983.03 ▲34.86
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius1,5141.7428.1128.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/doubly/vendor/freemius/includes/class-freemius.php+8515
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • fs_accounts
    • theysaidso_admin_options
    • fs_debug_mode
    • widget_recent-posts
    • widget_theysaidso_widget
    • fs_active_plugins
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 27× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/doubly/inc_php/admin_notices.class.php
    • > /wp-content/plugins/doubly/inc_php/functions.php
    • > /wp-content/plugins/doubly/inc_php/settings_output.class.php
    • > /wp-content/plugins/doubly/inc_php/object.class.php
    • > /wp-content/plugins/doubly/views/welcome.php
    • > /wp-content/plugins/doubly/inc_php/integrations.class.php
    • > /wp-content/plugins/doubly/inc_php/front.class.php
    • > /wp-content/plugins/doubly/inc_php/settings_output_wide.class.php
    • > /wp-content/plugins/doubly/inc_php/exporter.class.php
    • > /wp-content/plugins/doubly/inc_php/functions_wp.class.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt is a good inspiration

doubly/doubly.php Passed 13 tests

The main file in "Doubly - Cross Domain Copy Paste for WordPress" v. 1.0.44 serves as a complement to information provided in readme.txt and as the entry point to the plugin
72 characters long description:
Copy, Paste, Export, Import pages and elementor sections between domains

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin52,572 lines of code in 204 files:
LanguageFilesBlank linesComment linesLines of code
PHP14714,48120,26744,000
JavaScript82,9711,2465,225
CSS16599312,684
SVG30119406
Markdown1680214
JSON10027
XML13016

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity88.21
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity4.23
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes73
▷ Abstract classes22.74%
▷ Concrete classes7197.26%
▷ Final classes00.00%
Methods1,995
▷ Static methods45222.66%
▷ Public methods1,28864.56%
▷ Protected methods1025.11%
▷ Private methods60530.33%
Functions100
▷ Named functions100100.00%
▷ Anonymous functions00.00%
Constants281
▷ Global constants10135.94%
▷ Class constants18064.06%
▷ Public constants180100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
vendor/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%