84% nbsp-french

Code Review | JSM Non-Breaking Space (nbsp) for French Content

WordPress plugin JSM Non-Breaking Space (nbsp) for French Content scored84%from 54 tests.

About plugin

  • Plugin page: nbsp-french
  • Plugin version: 1.13.1
  • PHP compatiblity: 7.2.34+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 25, 2013
  • Latest release: Nov 19, 2023
  • Number of updates: 592
  • Update frequency: every 6.2 days
  • Top authors: jsmoriss (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

900+ active /19,011 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.98ms] Passed 4 tests

This is a short check of server-side resources used by JSM Non-Breaking Space (nbsp) for French Content
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.55 ▼0.03
Dashboard /wp-admin3.31 ▲0.0143.99 ▼5.73
Posts /wp-admin/edit.php3.37 ▲0.0143.81 ▼10.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.38 ▼7.21
Media Library /wp-admin/upload.php3.24 ▲0.0132.63 ▲0.61

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

JSM Non-Breaking Space (nbsp) for French Content: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.67 ▲0.321.63 ▼0.0636.60 ▼7.96
Dashboard /wp-admin2,195 ▲215.56 ▲0.0392.19 ▼1.5940.88 ▼5.47
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0635.77 ▼3.8536.55 ▲1.59
Add New Post /wp-admin/post-new.php1,526 ▼923.27 ▼1.98575.17 ▼19.7156.20 ▼6.20
Media Library /wp-admin/upload.php1,400 ▲64.20 ▲0.0696.27 ▼6.0842.04 ▼0.59

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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)
Everything seems fine, however 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/nbsp-french/nbsp-french.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: line-break, content, nbsp non-breaking, french, punctuation

nbsp-french/nbsp-french.php Passed 13 tests

The primary PHP file in "JSM Non-Breaking Space (nbsp) for French Content" version 1.13.1 is used by WordPress to initiate all plugin functionality
114 characters long description:
Adds a non-breaking space (nbsp) between words and punctuation marks to avoid inappropriate line-breaks in French.

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
No dangerous file extensions were detected107 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1564791
Markdown16016

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods466.67%
▷ Public methods466.67%
▷ Protected methods00.00%
▷ Private methods233.33%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin