84% french-slugs

Code Review | French Slugs

WordPress plugin French Slugs scored84%from 54 tests.

About plugin

  • Plugin page: french-slugs
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5.1
  • WordPress version: 6.3.1
  • First release: May 23, 2013
  • Latest release: May 23, 2013
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: Residence mixte (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active /1,440 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.00MB] [CPU: ▼7.30ms] Passed 4 tests

Server-side resources used by French Slugs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.81 ▼7.44
Dashboard /wp-admin3.31 ▲0.0147.79 ▲2.24
Posts /wp-admin/edit.php3.36 ▲0.0044.39 ▼6.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.00 ▼14.27
Media Library /wp-admin/upload.php3.23 ▲0.0035.49 ▼0.80

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

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

Browser metrics Passed 4 tests

A check of browser resources used by French Slugs
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.11 ▼1.144.67 ▲2.8544.94 ▼6.62
Dashboard /wp-admin2,206 ▲184.86 ▼0.04111.45 ▲2.6243.31 ▲2.64
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0536.20 ▼8.5534.72 ▼1.85
Add New Post /wp-admin/post-new.php1,529 ▼1318.34 ▼0.08655.03 ▲38.8656.50 ▲4.75
Media Library /wp-admin/upload.php1,382 ▼34.21 ▲0.0199.71 ▲0.5844.95 ▲3.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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_filter() in wp-content/plugins/french-slugs/french-slugs.php:11

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 issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: url, apostrophe, slug, french, quotes

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

The principal PHP file in "French Slugs" v. 1.0 is loaded by WordPress automatically on each request
108 characters long description:
Changes simple quotes (apostrophes) to dashes (-) to keep slugs readable and SEO friendly, mostly 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
Success! There were no dangerous files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1298

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin