78% price-comparison

Code Review | Wordpress Price Comparison

WordPress plugin Wordpress Price Comparison scored78%from 54 tests.

About plugin

  • Plugin page: price-comparison
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1
  • WordPress version: 6.3.1
  • First release: Jan 27, 2015
  • Latest release: Jan 27, 2015
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: dhilditch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,624 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.25ms] Passed 4 tests

Server-side resources used by Wordpress Price Comparison
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.05 ▼2.18
Dashboard /wp-admin3.36 ▲0.0546.67 ▼2.24
Posts /wp-admin/edit.php3.41 ▲0.0546.36 ▼0.03
Add New Post /wp-admin/post-new.php5.96 ▲0.0781.75 ▼8.53
Media Library /wp-admin/upload.php3.28 ▲0.0533.08 ▲0.69
Wordpress Price Comparison /wp-admin/options-general.php?page=wordpress_price_comparison3.2230.74

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
wppc_settings
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Wordpress Price Comparison: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.32 ▼1.112.08 ▲0.1345.56 ▼2.19
Dashboard /wp-admin2,214 ▲294.85 ▼1.01113.85 ▼7.2642.29 ▼1.43
Posts /wp-admin/edit.php2,097 ▲52.01 ▼0.0235.41 ▲0.3832.88 ▼0.56
Add New Post /wp-admin/post-new.php1,521 ▼1217.67 ▼5.40653.67 ▼11.2647.00 ▼16.70
Media Library /wp-admin/upload.php1,396 ▲84.15 ▼0.0396.04 ▼0.3642.36 ▼1.21
Wordpress Price Comparison /wp-admin/options-general.php?page=wordpress_price_comparison8771.8028.5533.39

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
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • wppc_settings
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=wordpress_price_comparison
    • > Notice in wp-content/plugins/price-comparison/wordpress-price-comparison.php+322
    Undefined index: skimlinksid

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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/price-comparison/wordpress-price-comparison.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (http://www.affiliatewebdesigners.com/assets/wordpress-price-comparison-pro1-300x227.png) image not found
The official readme.txt might help

price-comparison/wordpress-price-comparison.php 92% from 13 tests

The primary PHP file in "Wordpress Price Comparison" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("price-comparison.php" instead of "wordpress-price-comparison.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin320 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15046301
CSS10012
JavaScript1207

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected