84% ceceppa-multilingua-support-for-woocommerce

Code Review | Ceceppa Multilingua support for WooCommerce

WordPress plugin Ceceppa Multilingua support for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: ceceppa-multiling...
  • Plugin version: 0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.1-4.2
  • WordPress version: 6.3.1
  • First release: Apr 11, 2014
  • Latest release: Jun 14, 2015
  • Number of updates: 25
  • Update frequency: every 17.2 days
  • Top authors: ceceppa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /4,256 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Ceceppa Multilingua support for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.90 ▲6.64
Dashboard /wp-admin3.34 ▲0.0444.27 ▼1.31
Posts /wp-admin/edit.php3.45 ▲0.1044.56 ▼4.45
Add New Post /wp-admin/post-new.php5.94 ▲0.0682.44 ▼19.06
Media Library /wp-admin/upload.php3.26 ▲0.0434.14 ▲1.83

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Ceceppa Multilingua support for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲10013.65 ▼0.702.13 ▲0.3637.85 ▼5.60
Dashboard /wp-admin2,225 ▲435.81 ▲0.9499.61 ▼7.9342.51 ▲0.90
Posts /wp-admin/edit.php2,107 ▲182.05 ▼0.0034.88 ▼6.4432.81 ▼2.50
Add New Post /wp-admin/post-new.php1,542 ▲2318.34 ▼4.93601.29 ▼32.4360.44 ▲9.98
Media Library /wp-admin/upload.php1,401 ▲164.24 ▲0.05101.78 ▼12.7142.61 ▼3.99

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ceceppa-multilingua-support-for-woocommerce/cml4woocommerce.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: There are too many tags (24 tag instead of maximum 10)
Please take inspiration from this readme.txt

ceceppa-multilingua-support-for-woocommerce/cml4woocommerce.php 92% from 13 tests

The principal PHP file in "Ceceppa Multilingua support for WooCommerce" v. 0.8 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ceceppa-multilingua-support-for-woocommerce.php" instead of "cml4woocommerce.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 detected948 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4253105763
JavaScript24217131
CSS112054

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity34.25
▷ Minimum class complexity13.00
▷ Maximum class complexity67.00
Average method complexity3.66
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods50
▷ Static methods00.00%
▷ Public methods50100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin