10% price-comparison-shopping-engine

Code Review | Price Comparison Shopping Engine

WordPress plugin Price Comparison Shopping Engine scored10%from 54 tests.

About plugin

  • Plugin page: price-comparison-...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 5, 2016
  • Latest release: Nov 7, 2017
  • Number of updates: 32
  • Update frequency: every 10.3 days
  • Top authors: UkrSolution (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,321 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function check_admin_referer was called incorrectly. You should specify an action to be verified by using the first parameter. Please see Debugging in WordPress for more information. (This message was added in version 3.2.0.)

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

Server-side resources used by Price Comparison Shopping Engine
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.22 ▼3.10
Dashboard /wp-admin3.31 ▲0.0048.81 ▼9.86
Posts /wp-admin/edit.php3.36 ▲0.0050.56 ▼2.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.79 ▼12.45
Media Library /wp-admin/upload.php3.23 ▲0.0038.39 ▲0.84

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

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

Browser metrics Passed 4 tests

Price Comparison Shopping Engine: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.72 ▲0.131.77 ▼0.0940.94 ▼2.05
Dashboard /wp-admin2,195 ▲185.64 ▲0.0793.07 ▲0.6742.05 ▼2.55
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0339.81 ▲4.2834.19 ▼3.24
Add New Post /wp-admin/post-new.php1,526 ▼022.97 ▼0.45582.70 ▼98.3467.88 ▲10.32
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.04102.65 ▼12.4544.28 ▼3.79

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 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
No plugin tags provided

price-comparison-shopping-engine/pcs_goodspack.php 85% from 13 tests

"Price Comparison Shopping Engine" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("price-comparison-shopping-engine.php" instead of "pcs_goodspack.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,113 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS2734462
PHP76442312
JavaScript12038306
PO File1111533

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity12.00
▷ Minimum class complexity8.00
▷ Maximum class complexity16.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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.09MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
styles/created_by.png2.84KB2.60KB▼ 8.44%
styles/created_by_ukrsolution.png2.79KB2.36KB▼ 15.36%
styles/logo_black.png44.38KB12.25KB▼ 72.39%
styles/logo_white.png45.25KB12.44KB▼ 72.51%