78% wps-bidouille

Code Review | WPS Bidouille

WordPress plugin WPS Bidouille scored78%from 54 tests.

About plugin

  • Plugin page: wps-bidouille
  • Plugin version: 1.29
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.3
  • WordPress version: 6.3.1
  • First release: Feb 8, 2018
  • Latest release: Aug 24, 2023
  • Number of updates: 81
  • Update frequency: every 25.0 days
  • Top authors: NicolasKulka (100%)

Code review

54 tests

User reviews

53 reviews

Install metrics

10,000+ active /184,775 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.58MB] [CPU: ▼2.33ms] 75% from 4 tests

An overview of server-side resources used by WPS Bidouille
Please take the time to fix the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 989.75ms on /wp-admin/admin.php?page=wps-bidouille)
PageMemory (MB)CPU Time (ms)
Home /4.04 ▲0.5840.25 ▼0.30
Dashboard /wp-admin3.89 ▲0.5848.31 ▲1.95
Posts /wp-admin/edit.php3.94 ▲0.5846.68 ▼4.12
Add New Post /wp-admin/post-new.php6.49 ▲0.5986.17 ▼6.85
Media Library /wp-admin/upload.php3.81 ▲0.5838.32 ▲2.71
Tools /wp-admin/admin.php?page=wps-bidouille-tools3.7537.85
WPS Bidouille /wp-admin/admin.php?page=wps-bidouille3.97989.75

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 92 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-posts
wps_white_list
theysaidso_admin_options
wps_notifs_ajax
widget_theysaidso_widget
wps_save_settings
widget_recent-comments
can_compress_scripts
wps_display
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WPS Bidouille
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲10314.82 ▲0.431.82 ▼0.1939.14 ▼7.84
Dashboard /wp-admin2,269 ▲1175.90 ▲0.2198.27 ▼11.7183.47 ▲42.12
Posts /wp-admin/edit.php2,152 ▲632.04 ▲0.0235.50 ▼7.0934.49 ▼0.17
Add New Post /wp-admin/post-new.php1,573 ▲3823.22 ▼0.04686.63 ▼29.1566.29 ▲7.90
Media Library /wp-admin/upload.php1,451 ▲634.17 ▼0.07113.81 ▲13.9445.64 ▼0.07
Tools /wp-admin/admin.php?page=wps-bidouille-tools1,1574.6243.00101.05
WPS Bidouille /wp-admin/admin.php?page=wps-bidouille2,2225.4875.9286.88

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 10 options in the database
    • widget_theysaidso_widget
    • wps_save_settings
    • widget_recent-comments
    • wps_white_list
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • wps_notifs_ajax
    • wps_display

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 29× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/wps-bidouille/blocks/settings_autoupdate.php
    • > /wp-content/plugins/wps-bidouille/blocks/db_prefix.php
    • > /wp-content/plugins/wps-bidouille/admin_page/remove_from_cache.php
    • > /wp-content/plugins/wps-bidouille/blocks/ssl.php
    • > /wp-content/plugins/wps-bidouille/blocks/title.php
    • > /wp-content/plugins/wps-bidouille/blocks/optimisations.php
    • > /wp-content/plugins/wps-bidouille/blocks/check_cache.php
    • > /wp-content/plugins/wps-bidouille/admin_page/white_label.php
    • > /wp-content/plugins/wps-bidouille/admin_page/plugin.php
    • > /wp-content/plugins/wps-bidouille/blocks/update_traduction.php
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Trait 'WPS\\WPS_Bidouille\\Singleton' not found in wp-content/plugins/wps-bidouille/classes/helpers.php on line 5
    • > PHP Fatal error
      Trait 'WPS\\WPS_Bidouille\\Singleton' not found in wp-content/plugins/wps-bidouille/classes/removefromcache.php on line 5
    • > PHP Warning
      Use of undefined constant WPS_BIDOUILLE_DIR - assumed 'WPS_BIDOUILLE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wps-bidouille/autoload.php on line 197
    • > PHP Fatal error
      Trait 'WPS\\WPS_Bidouille\\Singleton' not found in wp-content/plugins/wps-bidouille/classes/plugin.php on line 5
    • > PHP Fatal error
      Trait 'WPS\\WPS_Bidouille\\Singleton' not found in wp-content/plugins/wps-bidouille/classes/suggest-plugins-themes.php on line 5
    • > PHP Warning
      Use of undefined constant WPS_BIDOUILLE_DIR - assumed 'WPS_BIDOUILLE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wps-bidouille/autoload.php on line 203
    • > PHP Fatal error
      Trait 'WPS\\WPS_Bidouille\\Singleton' not found in wp-content/plugins/wps-bidouille/classes/systemreport.php on line 5
    • > PHP Fatal error
      Trait 'WPS\\WPS_Bidouille\\Singleton' not found in wp-content/plugins/wps-bidouille/classes/tools.php on line 5
    • > PHP Fatal error
      Trait 'WPS\\WPS_Bidouille\\Singleton' not found in wp-content/plugins/wps-bidouille/classes/suggestions.php on line 5
    • > PHP Fatal error
      Trait 'WPS\\WPS_Bidouille\\Singleton' not found in wp-content/plugins/wps-bidouille/classes/whitelabel.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% 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
6 plugin tags: wpserveur, error, transient, tools, admin...

wps-bidouille/wps-bidouille.php 85% from 13 tests

The entry point to "WPS Bidouille" version 1.29 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")

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
Success! There were no dangerous files found in this plugin15,501 lines of code in 67 files:
LanguageFilesBlank linesComment linesLines of code
SVG40166,410
PHP511,1419735,370
CSS2114712,288
PO File1312494733
JavaScript78444669
JSON20031

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity30.82
▷ Minimum class complexity1.00
▷ Maximum class complexity115.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces3
Interfaces0
Traits1
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods224
▷ Static methods17276.79%
▷ Public methods20792.41%
▷ Protected methods135.80%
▷ Private methods41.79%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
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
4 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/check-and-tools-logo-in-plugin.png39.55KB7.80KB▼ 80.28%
assets/img/icone-encours.png7.78KB4.65KB▼ 40.19%
assets/img/bg_title_plugin.png27.77KB12.63KB▼ 54.51%
assets/img/bg_pub.png4.98KB2.63KB▼ 47.29%