84% basic-bilingual

Code Review | Basic Bilingual

WordPress plugin Basic Bilingual scored84%from 54 tests.

About plugin

  • Plugin page: basic-bilingual
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9
  • WordPress version: 6.3.1
  • First release: Jan 23, 2005
  • Latest release: May 18, 2018
  • Number of updates: 97
  • Update frequency: every 50.1 days
  • Top authors: cvedovini (83.51%)Steph (10.31%)steph (8.25%)matt (2.06%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /13,289 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
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼0.04ms] Passed 4 tests

Analyzing server-side resources used by Basic Bilingual
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1148.33 ▲11.90
Dashboard /wp-admin3.42 ▲0.0851.03 ▼15.36
Posts /wp-admin/edit.php3.47 ▲0.1155.42 ▲8.89
Add New Post /wp-admin/post-new.php6.00 ▲0.1293.97 ▼2.90
Media Library /wp-admin/upload.php3.33 ▲0.1042.37 ▲9.23
Basic Bilingual /wp-admin/options-general.php?page=basic-bilingual3.3039.96

Server storage [IO: ▲0.18MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Basic Bilingual
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6614.48 ▲0.302.26 ▲0.5246.27 ▲5.02
Dashboard /wp-admin2,207 ▲195.85 ▼0.05109.41 ▲2.6740.32 ▼3.13
Posts /wp-admin/edit.php2,121 ▲322.03 ▲0.0340.10 ▲2.5835.99 ▲0.83
Add New Post /wp-admin/post-new.php6,286 ▲4,76719.02 ▼3.91882.92 ▲225.1164.05 ▲11.91
Media Library /wp-admin/upload.php1,395 ▲74.21 ▲0.01101.02 ▼2.2245.82 ▼0.20
Basic Bilingual /wp-admin/options-general.php?page=basic-bilingual1,4863.0659.5539.87

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/basic-bilingual/basic-bilingual.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: bilingual, multilingual, language, translation, languages

basic-bilingual/basic-bilingual.php Passed 13 tests

The entry point to "Basic Bilingual" version 1.3.5 is a PHP file that has certain tags in its header comment area
60 characters long description:
Makes managing your blog with two languages less cumbersome.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,941 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PO File66066301,278
PHP213277655
CSS1208

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity38.50
▷ Minimum class complexity31.00
▷ Maximum class complexity46.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods49
▷ Static methods12.04%
▷ Public methods49100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected