84% prestashop-user-compatibility

Code Review | Prestashop User Compatibility

WordPress plugin Prestashop User Compatibility scored84%from 54 tests.

About plugin

  • Plugin page: prestashop-user-c...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.0.1
  • WordPress version: 6.3.1
  • First release: Dec 13, 2012
  • Latest release: Nov 13, 2016
  • Number of updates: 25
  • Update frequency: every 57.2 days
  • Top authors: veganist (96%)Otto42 (8%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /3,388 total downloads

Benchmarks

Plugin footprint 83% 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: ▼0.00MB] [CPU: ▼14.34ms] Passed 4 tests

Analyzing server-side resources used by Prestashop User Compatibility
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.79 ▼5.27
Dashboard /wp-admin3.31 ▼0.0345.99 ▼20.87
Posts /wp-admin/edit.php3.36 ▲0.0156.50 ▲3.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.99 ▼28.48
Media Library /wp-admin/upload.php3.23 ▲0.0138.30 ▼2.72
Prestashop User Compat /wp-admin/options-general.php?page=prestashop_user_compat_page3.2030.95

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Prestashop User Compatibility
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.66 ▲0.282.05 ▲0.3037.35 ▼3.65
Dashboard /wp-admin2,199 ▲225.60 ▼0.0794.17 ▲6.8842.75 ▲0.45
Posts /wp-admin/edit.php2,104 ▲42.05 ▲0.0437.06 ▲0.4338.83 ▲3.81
Add New Post /wp-admin/post-new.php1,548 ▲1423.08 ▼0.07686.60 ▲24.5658.18 ▼0.47
Media Library /wp-admin/upload.php1,404 ▲44.27 ▲0.0496.95 ▼4.7642.41 ▼1.05
Prestashop User Compat /wp-admin/options-general.php?page=prestashop_user_compat_page7802.0526.7130.30

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% 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 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/prestashop-user-compatibility/prestashop-user-compatibility.php:67

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: users, migrate, email, password, hash...

prestashop-user-compatibility/prestashop-user-compatibility.php Passed 13 tests

Analyzing the main PHP file in "Prestashop User Compatibility" version 1.3
33 characters long description:
Prestashop user password rehasher

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected47 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1183447

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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 functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin