10% priseo-price-comparison-for-wpshop

Code Review | Priseo - Price comparison for WPShop

WordPress plugin Priseo - Price comparison for WPShop scored10%from 54 tests.

About plugin

  • Plugin page: priseo-price-comp...
  • Plugin version: 1.0.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 29, 2013
  • Latest release: Apr 29, 2013
  • Number of updates: 3
  • Update frequency: every 4.0 days
  • Top authors: Eoxia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /882 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/priseo-price-comparison-for-wpshop/utils/librairies/sender.class.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; syp_sender has a deprecated constructor

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.69ms] Passed 4 tests

Server-side resources used by Priseo - Price comparison for WPShop
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.42 ▲2.33
Dashboard /wp-admin3.31 ▲0.0046.88 ▲1.34
Posts /wp-admin/edit.php3.36 ▲0.0043.22 ▼3.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.46 ▼8.67
Media Library /wp-admin/upload.php3.23 ▲0.0034.54 ▼0.37

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

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

Browser metrics Passed 4 tests

Priseo - Price comparison for WPShop: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▼0.022.00 ▲0.3545.45 ▲4.86
Dashboard /wp-admin2,195 ▲155.65 ▲0.0585.95 ▼1.8239.60 ▼2.47
Posts /wp-admin/edit.php2,110 ▲72.01 ▲0.0334.94 ▼0.3235.56 ▲4.64
Add New Post /wp-admin/post-new.php1,528 ▲223.13 ▼0.10603.09 ▼98.7151.90 ▼4.48
Media Library /wp-admin/upload.php1,397 ▼64.11 ▼0.1098.52 ▲1.4440.93 ▼4.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 fix the following
  • 9× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/priseo-price-comparison-for-wpshop/utils/librairies/core.class.php
    • > /wp-content/plugins/priseo-price-comparison-for-wpshop/syp-client.php
    • > /wp-content/plugins/priseo-price-comparison-for-wpshop/utils/config.php
    • > /wp-content/plugins/priseo-price-comparison-for-wpshop/templates/template_elements.tpl.php
    • > /wp-content/plugins/priseo-price-comparison-for-wpshop/utils/librairies/display.class.php
    • > /wp-content/plugins/priseo-price-comparison-for-wpshop/utils/librairies/sender.class.php
    • > /wp-content/plugins/priseo-price-comparison-for-wpshop/utils/include.php
    • > /wp-content/plugins/priseo-price-comparison-for-wpshop/utils/librairies/ajax.class.php
    • > /wp-content/plugins/priseo-price-comparison-for-wpshop/utils/librairies/listener.class.php

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 96% from 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
5 plugin tags: comparison, wpshop, competitors, product, price

priseo-price-comparison-for-wpshop/syp-client.php 92% from 13 tests

The main file in "Priseo - Price comparison for WPShop" v. 1.0.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("priseo-price-comparison-for-wpshop.php" instead of "syp-client.php")

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
Everything looks great! No dangerous files found in this plugin2,022 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP102403201,397
JavaScript27145448
PO File15358135
CSS10242

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity18.00
▷ Minimum class complexity4.00
▷ Maximum class complexity43.00
Average method complexity3.49
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods41
▷ Static methods921.95%
▷ Public methods3995.12%
▷ Protected methods00.00%
▷ Private methods24.88%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
templates/icon_premium.png11.00KB4.74KB▼ 56.89%
templates/barcode.png0.54KB0.59KB0.00%
templates/icon_sync.png8.75KB3.29KB▼ 62.44%
templates/pattern.png0.72KB0.47KB▼ 34.24%