84% clonable

Code Review | Clonable - Translate Woocommerce / WordPress website. Multilingual in 5 minutes.

WordPress plugin Clonable - Translate Woocommerce / WordPress website. Multilingual in 5 minutes. scored84%from 54 tests.

About plugin

  • Plugin page: clonable
  • Plugin version: 2.0.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 1, 2022
  • Latest release: Nov 18, 2023
  • Number of updates: 34
  • Update frequency: every 18.4 days
  • Top authors: clonable (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,061 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.57MB] [CPU: ▼5.04ms] Passed 4 tests

A check of server-side resources used by Clonable - Translate Woocommerce / WordPress website. Multilingual in 5 minutes.
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.04 ▲0.5745.55 ▲4.58
Dashboard /wp-admin3.93 ▲0.5951.22 ▼13.10
Posts /wp-admin/edit.php3.98 ▲0.6345.30 ▼0.71
Add New Post /wp-admin/post-new.php6.45 ▲0.5684.32 ▼10.94
Media Library /wp-admin/upload.php3.79 ▲0.5641.93 ▲10.05

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 72 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
clonable_public_key
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Clonable - Translate Woocommerce / WordPress website. Multilingual in 5 minutes.
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲3914.25 ▼0.101.67 ▼0.0843.43 ▲0.25
Dashboard /wp-admin2,209 ▲285.55 ▼0.0789.20 ▼18.2071.70 ▲33.99
Posts /wp-admin/edit.php2,114 ▲141.96 ▼0.0437.74 ▲0.1933.74 ▼2.95
Add New Post /wp-admin/post-new.php1,550 ▲1523.34 ▼1.77668.77 ▲37.13165.50 ▲105.68
Media Library /wp-admin/upload.php1,411 ▲114.24 ▲0.08107.10 ▲4.5266.97 ▲24.33

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Clonable\\Views\\ViewInterface' not found in wp-content/plugins/clonable/views/LanguageSwitcherView.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Clonable\\MiddlewareInterface' not found in wp-content/plugins/clonable/middleware/ClonedSite.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Clonable\\Views\\ViewInterface' not found in wp-content/plugins/clonable/views/OnboardingView.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Clonable\\Views\\ViewInterface' not found in wp-content/plugins/clonable/views/AnalyticsView.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Clonable\\Controllers\\Controller' not found in wp-content/plugins/clonable/controllers/AnalyticsController.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Clonable\\MiddlewareInterface' not found in wp-content/plugins/clonable/middleware/WooCommerce.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Clonable\\Views\\ViewInterface' not found in wp-content/plugins/clonable/views/LanguageTagView.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Clonable\\Controllers\\Controller' not found in wp-content/plugins/clonable/controllers/LanguageSwitcherController.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Clonable\\MiddlewareInterface' not found in wp-content/plugins/clonable/middleware/Auth.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Clonable\\Controllers\\Controller' not found in wp-content/plugins/clonable/controllers/LanguageTagController.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: seo, multilingual, hreflang, translations, subfolder...

clonable/clonable-wp.php 92% from 13 tests

The principal PHP file in "Clonable - Translate Woocommerce / WordPress website. Multilingual in 5 minutes." v. 2.0.6 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("clonable.php" instead of "clonable-wp.php")

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
Good job! No executable or dangerous file extensions detected11,382 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript52441244,977
CSS55933553,775
PHP474845292,630

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity7.19
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces9
Interfaces2
Traits3
Classes38
▷ Abstract classes12.63%
▷ Concrete classes3797.37%
▷ Final classes00.00%
Methods193
▷ Static methods3618.65%
▷ Public methods17088.08%
▷ Protected methods00.00%
▷ Private methods2311.92%
Functions9
▷ Named functions00.00%
▷ Anonymous functions9100.00%
Constants13
▷ Global constants215.38%
▷ Class constants1184.62%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/flags.png48.30KB45.59KB▼ 5.63%
images/clonable-full-logo.png57.57KB17.41KB▼ 69.76%
images/clonable.png0.39KB0.39KB0.00%