94% la-bande-a-coco

Code Review | La Bande a Coco

WordPress plugin La Bande a Coco scored 94% from 54 tests.

About plugin

  • Plugin page: la-bande-a-coco
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.7
  • WordPress version: 5.8.1
  • First release: Apr 19, 2021
  • Latest release: Apr 19, 2021
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: cocopierrot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 333 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼142.24ms] Passed 4 tests

An overview of server-side resources used by La Bande a Coco
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1333.39 ▲11.35
Dashboard /wp-admin3.08 ▲0.0245.57 ▲1.50
Posts /wp-admin/edit.php3.13 ▲0.0241.67 ▼2.89
Add New Post /wp-admin/post-new.php5.43 ▲0.0085.88 ▼568.14
Media Library /wp-admin/upload.php3.02 ▲0.0233.25 ▲0.59

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for La Bande a Coco
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,722 ▲12616.24 ▲0.647.90 ▼1.9647.58 ▼4.14
Dashboard /wp-admin2,979 ▲485.92 ▼0.04129.65 ▼24.12138.48 ▲15.58
Posts /wp-admin/edit.php2,770 ▲312.69 ▼0.0062.35 ▼8.1085.23 ▲7.27
Add New Post /wp-admin/post-new.php1,685 ▲1318.88 ▲0.09399.03 ▲38.11112.26 ▼0.98
Media Library /wp-admin/upload.php1,764 ▼404.98 ▼0.02128.10 ▼18.21142.33 ▲23.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

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 | 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/la-bande-a-coco/labandeacoco.php:123

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
2 plugin tags: cocodico, woocommerce

la-bande-a-coco/labandeacoco.php 92% from 13 tests

Analyzing the main PHP file in "La Bande a Coco" version 1.0
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("la-bande-a-coco.php" instead of "labandeacoco.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
There were no executable files found in this plugin96 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1192296

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png3.44KB1.37KB▼ 60.28%