10% pricemesh

Code Review | Pricemesh - Price Comparison | Preisvergleich

WordPress plugin Pricemesh - Price Comparison | Preisvergleich scored 10% from 54 tests.

About plugin

  • Plugin page: pricemesh
  • Plugin version: 1.6.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.8.0
  • WordPress version: 6.3.1
  • First release: Jan 3, 2014
  • Latest release: Aug 7, 2017
  • Number of updates: 31
  • Update frequency: every 42.4 days
  • Top authors: pricemesh (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

20+ active / 11,436 total downloads

Benchmarks

Plugin footprint 40% 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
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/pricemesh/pricemesh.php+36
    Function create_function() is deprecated

Server metrics [RAM: ▼1.84MB] [CPU: ▼51.95ms] Passed 4 tests

Server-side resources used by Pricemesh - Price Comparison | Preisvergleich
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.315.47 ▼34.40
Dashboard /wp-admin2.17 ▼1.136.43 ▼43.29
Posts /wp-admin/edit.php2.17 ▼1.186.87 ▼40.95
Add New Post /wp-admin/post-new.php2.17 ▼3.725.25 ▼89.15
Media Library /wp-admin/upload.php2.17 ▼1.067.54 ▼29.05
Pricemesh /wp-admin/options-general.php?page=Pricemesh2.175.78

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_pricemeshwidget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Pricemesh - Price Comparison | Preisvergleich
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.57 ▼1.071.74 ▼0.0740.71 ▼12.49
Dashboard /wp-admin2,213 ▲224.80 ▼0.1096.68 ▼10.4137.52 ▼6.17
Posts /wp-admin/edit.php2,096 ▲72.05 ▼0.0036.92 ▼2.4531.20 ▼4.39
Add New Post /wp-admin/post-new.php6,483 ▲5,07223.38 ▲5.46880.78 ▲304.94104.16 ▲37.75
Media Library /wp-admin/upload.php1,392 ▲74.25 ▲0.15103.10 ▼19.0940.34 ▼8.10
Pricemesh /wp-admin/options-general.php?page=Pricemesh1,0821.7225.6846.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/pricemesh/pricemesh.php+36
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_pricemeshwidget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=Pricemesh
    • > Deprecated in wp-content/plugins/pricemesh/pricemesh.php+36
    Function create_function() is deprecated

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
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'PricemeshBase' not found in wp-content/plugins/pricemesh/admin/pricemesh-admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/pricemesh/admin/views/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/pricemesh/admin/views/metabox.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'PricemeshBase' not found in wp-content/plugins/pricemesh/public/pricemesh-public.php:15

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === pricemesh === )
The official readme.txt might help

pricemesh/pricemesh.php Passed 13 tests

Analyzing the main PHP file in "Pricemesh - Price Comparison | Preisvergleich" version 1.6.10
102 characters long description:
Extend WordPress with your own price comparison | WordPress um einen eigenen Preisvergleich erweitern.

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
Everything looks great! No dangerous files found in this plugin4,193 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript55093322,427
PHP82444931,028
CSS1801550
PO File17479188

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity17.20
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods70
▷ Static methods1521.43%
▷ Public methods5984.29%
▷ Protected methods34.29%
▷ Private methods811.43%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.90MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-4.png435.86KB121.64KB▼ 72.09%
assets/screenshot-2.png53.84KB17.63KB▼ 67.26%
assets/screenshot-1.png8.87KB2.87KB▼ 67.67%
assets/screenshot-3.png424.53KB131.28KB▼ 69.08%
admin/assets/img/icon_sprite.png0.62KB0.68KB0.00%