78% thepointofsalecom-widget-shortcode

Code Review | Lepointdevente.com

WordPress plugin Lepointdevente.com scored78%from 54 tests.

About plugin

  • Plugin page: thepointofsalecom...
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 14, 2016
  • Latest release: Nov 26, 2021
  • Number of updates: 21
  • Update frequency: every 97.8 days
  • Top authors: cognitif (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,910 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.74ms] Passed 4 tests

A check of server-side resources used by Lepointdevente.com
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.48 ▲0.95
Dashboard /wp-admin3.37 ▲0.0750.01 ▲0.19
Posts /wp-admin/edit.php3.42 ▲0.0648.95 ▼0.65
Add New Post /wp-admin/post-new.php5.97 ▲0.0985.30 ▼19.44
Media Library /wp-admin/upload.php3.29 ▲0.0639.40 ▲3.44
Thepointofsale.com /wp-admin/options-general.php?page=tposguten_plugin3.2634.85

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Lepointdevente.com
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲10514.37 ▲0.021.92 ▲0.2546.45 ▲8.57
Dashboard /wp-admin2,218 ▲415.78 ▲0.1084.97 ▼3.2339.35 ▼0.65
Posts /wp-admin/edit.php2,122 ▲432.29 ▲0.2834.99 ▲0.2131.96 ▼6.38
Add New Post /wp-admin/post-new.php6,387 ▲4,86127.84 ▲4.72877.40 ▲201.3839.27 ▼11.26
Media Library /wp-admin/upload.php1,417 ▲144.41 ▲0.25102.61 ▲6.9045.17 ▼0.03
Thepointofsale.com /wp-admin/options-general.php?page=tposguten_plugin1,0362.3645.6428.59

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/thepointofsalecom-widget-shortcode/thepointofsalecom-widget-shortcode.php
    • > /wp-content/plugins/thepointofsalecom-widget-shortcode/uninstall.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/thepointofsalecom-widget-shortcode/templates/admin.php:3

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
There were not plugin tags detected

thepointofsalecom-widget-shortcode/thepointofsalecom-widget-shortcode.php 92% from 13 tests

The main file in "Lepointdevente.com" v. 2.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 187 characters long)

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 plugin1,137 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2423491
PO File5105105355
PHP34026286
JSON5005

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions10
▷ Named functions10100.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