89% texte-inclusif

Code Review | Texte Inclusif

WordPress plugin Texte Inclusif scored89%from 54 tests.

About plugin

  • Plugin page: texte-inclusif
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 20, 2018
  • Latest release: Mar 21, 2018
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: bunkerd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /746 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
Installer ran successfully

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

Analyzing server-side resources used by Texte Inclusif
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0144.23 ▲1.37
Dashboard /wp-admin3.33 ▲0.0353.95 ▲4.95
Posts /wp-admin/edit.php3.38 ▲0.0252.12 ▼0.12
Add New Post /wp-admin/post-new.php5.91 ▲0.0297.80 ▼5.25
Media Library /wp-admin/upload.php3.25 ▲0.0236.73 ▲0.92
Texte inclusif /wp-admin/options-general.php?page=inclusif3.2230.91

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: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Texte Inclusif
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.20 ▼1.461.59 ▼0.1844.90 ▲5.55
Dashboard /wp-admin2,225 ▲195.03 ▼0.85110.34 ▲8.8340.91 ▲1.38
Posts /wp-admin/edit.php2,107 ▲72.05 ▲0.0342.82 ▲8.0335.84 ▼1.31
Add New Post /wp-admin/post-new.php1,529 ▼1617.71 ▼5.52586.73 ▼105.6155.30 ▼7.72
Media Library /wp-admin/upload.php1,398 ▲14.28 ▲0.0498.28 ▼4.6045.89 ▲1.10
Texte inclusif /wp-admin/options-general.php?page=inclusif8442.0226.7425.82

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Requires php: The plugin version is formatted incorrectly
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

texte-inclusif/texte-inclusif.php Passed 13 tests

"Texte Inclusif" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
128 characters long description:
Reconnaît les termes inclusifs féminins·masculins, remplacent les points utilisés par la forme choisie par l'administrateur,

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected80 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1153980

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin