84% ceceppa-multilingua-support-for-customizr

Code Review | Ceceppa Multilingua support to Customizr

WordPress plugin Ceceppa Multilingua support to Customizr scored84%from 54 tests.

About plugin

  • Plugin page: ceceppa-multiling...
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.1-3.9
  • WordPress version: 6.3.1
  • First release: Mar 20, 2014
  • Latest release: Apr 9, 2014
  • Number of updates: 18
  • Update frequency: every 1.1 days
  • Top authors: ceceppa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,578 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

A check of server-side resources used by Ceceppa Multilingua support to Customizr
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.59 ▼9.59
Dashboard /wp-admin3.39 ▲0.0849.13 ▲0.19
Posts /wp-admin/edit.php3.50 ▲0.1449.23 ▼1.94
Add New Post /wp-admin/post-new.php5.97 ▲0.08101.17 ▼2.31
Media Library /wp-admin/upload.php3.31 ▲0.0836.93 ▲3.67

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Ceceppa Multilingua support to Customizr
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7113.21 ▼1.364.69 ▲2.7144.66 ▲2.92
Dashboard /wp-admin2,220 ▲355.77 ▼0.0997.36 ▼3.7138.75 ▼4.44
Posts /wp-admin/edit.php2,105 ▲162.06 ▼0.1135.52 ▼6.0134.00 ▼4.82
Add New Post /wp-admin/post-new.php1,545 ▲923.18 ▼0.09636.60 ▲28.9954.87 ▲3.89
Media Library /wp-admin/upload.php1,405 ▲204.17 ▼0.0495.23 ▼13.6439.96 ▼3.42

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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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
Everything seems fine, however 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
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/ceceppa-multilingua-support-for-customizr/class-customizr.php
    • > /wp-content/plugins/ceceppa-multilingua-support-for-customizr/cml4customizr.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

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
Attributes that need to be fixed:
  • Tags: You are using too many tags: 24 tag instead of maximum 10
The official readme.txt might help

ceceppa-multilingua-support-for-customizr/cml4customizr.php 92% from 13 tests

The main file in "Ceceppa Multilingua support to Customizr" v. 0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ceceppa-multilingua-support-for-customizr.php" instead of "cml4customizr.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin448 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP213452434
CSS13014

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity37.50
▷ Minimum class complexity16.00
▷ Maximum class complexity59.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin