73% widget-actualites-relation-client

Code Review | Widget Actualites Relation Client

WordPress plugin Widget Actualites Relation Client scored 73% from 54 tests.

About plugin

  • Plugin page: widget-actualites...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-4.4
  • WordPress version: 6.3.1
  • First release: Jan 9, 2016
  • Latest release: Jan 9, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: contacter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,272 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.62MB] [CPU: ▼47.02ms] Passed 4 tests

Analyzing server-side resources used by Widget Actualites Relation Client
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.37 ▼1.0910.75 ▼38.32
Dashboard /wp-admin2.38 ▼0.9212.38 ▼38.47
Posts /wp-admin/edit.php2.39 ▼0.9713.99 ▼36.18
Add New Post /wp-admin/post-new.php2.38 ▼3.5013.70 ▼75.12
Media Library /wp-admin/upload.php2.38 ▼0.8412.85 ▼18.21

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Widget Actualites Relation Client
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.21 ▼1.231.95 ▼0.1244.94 ▼2.61
Dashboard /wp-admin2,203 ▲184.83 ▼0.07143.86 ▲29.8243.40 ▲6.95
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0639.05 ▼1.0635.16 ▼2.66
Add New Post /wp-admin/post-new.php1,534 ▲2023.21 ▲5.49658.63 ▲69.4061.19 ▲14.22
Media Library /wp-admin/upload.php1,388 ▲64.24 ▲0.0298.64 ▲1.0143.09 ▲0.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/widget-actualites-relation-client/widget-actu-relation-client.php+512
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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)
Good news, no errors were detected

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widget-actualites-relation-client/widget-actu-relation-client.php:566

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Le "Widget Actualites Relation Client" en action dans le backoffice de WordPress.), #2 (L'option pour afficher plusieurs widgets dans votre sidebar), #3 (Un exemple pour vous présenter le plugin en action directement sur une sidebar.)
The official readme.txt might help

widget-actualites-relation-client/widget-actu-relation-client.php 85% from 13 tests

The main PHP script in "Widget Actualites Relation Client" version 2.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 239 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("widget-actualites-relation-client.php" instead of "widget-actu-relation-client.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected455 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18826455

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity70.00
▷ Minimum class complexity70.00
▷ Maximum class complexity70.00
Average method complexity7.90
▷ Minimum method complexity3.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin