89% official-pricerunner-product-feed

Code Review | Official Pricerunner Product Feed

WordPress plugin Official Pricerunner Product Feed scored89%from 54 tests.

About plugin

  • Plugin page: official-pricerun...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7.2
  • WordPress version: 6.3.1
  • First release: Jan 18, 2017
  • Latest release: Mar 24, 2017
  • Number of updates: 20
  • Update frequency: every 3.2 days
  • Top authors: modifiedsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,523 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.31MB] [CPU: ▼4.29ms] Passed 4 tests

An overview of server-side resources used by Official Pricerunner Product Feed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3342.77 ▲3.01
Dashboard /wp-admin3.63 ▲0.3348.52 ▲0.53
Posts /wp-admin/edit.php3.68 ▲0.3247.28 ▼4.69
Add New Post /wp-admin/post-new.php6.15 ▲0.2686.52 ▼15.99
Media Library /wp-admin/upload.php3.55 ▲0.3236.05 ▲5.46

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Official Pricerunner Product Feed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.57 ▼1.061.91 ▲0.2642.54 ▼0.06
Dashboard /wp-admin2,222 ▲375.00 ▼0.11100.10 ▲0.2237.40 ▼7.30
Posts /wp-admin/edit.php2,105 ▲132.01 ▼0.0332.30 ▼10.5935.46 ▼1.06
Add New Post /wp-admin/post-new.php1,551 ▲2323.42 ▲5.13678.17 ▲65.6754.22 ▼5.32
Media Library /wp-admin/upload.php1,404 ▲194.14 ▲0.0393.15 ▼9.6141.12 ▼0.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: feed, service, pricerunner

official-pricerunner-product-feed/pricerunner-feed.php 77% from 13 tests

The main PHP script in "Official Pricerunner Product Feed" version 1.1.2 is automatically included on every request by WordPress
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("official-pricerunner-product-feed.php" instead of "pricerunner-feed.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,815 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP235727501,785
CSS14022
Markdown2608

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity7.83
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods160
▷ Static methods1710.62%
▷ Public methods10263.75%
▷ Protected methods4427.50%
▷ Private methods148.75%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants19
▷ Global constants210.53%
▷ Class constants1789.47%
▷ Public constants17100.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
PNG images were not found in this plugin