94% better-pricing-wc-paid-listings

Code Review | Better Pricing for WC Paid Listings

WordPress plugin Better Pricing for WC Paid Listings scored 94% from 54 tests.

About plugin

  • Plugin page: better-pricing-wc...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8.1
  • WordPress version: 5.8.1
  • First release: Nov 12, 2021
  • Latest release: Nov 13, 2021
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: wpfred24 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 35 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by Better Pricing for WC Paid Listings
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.47 ▲15.68
Dashboard /wp-admin3.07 ▲0.0143.58 ▼1.35
Posts /wp-admin/edit.php3.12 ▼0.0042.67 ▼9.06
Add New Post /wp-admin/post-new.php5.43 ▼0.0180.11 ▼582.89
Media Library /wp-admin/upload.php3.01 ▲0.0025.62 ▼7.18

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Better Pricing for WC Paid Listings
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲6615.87 ▲0.2812.06 ▲1.7847.44 ▲6.11
Dashboard /wp-admin2,967 ▲305.95 ▼0.17134.52 ▼6.76107.66 ▼4.99
Posts /wp-admin/edit.php2,736 ▼32.72 ▼0.0069.22 ▲1.6293.92 ▲3.22
Add New Post /wp-admin/post-new.php1,678 ▲17818.74 ▲0.11358.57 ▼18.23111.94 ▼2.18
Media Library /wp-admin/upload.php1,810 ▲35.06 ▲0.03147.79 ▲4.94113.07 ▼3.71

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/better-pricing-wc-paid-listings/shortcode-job-package-button.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/better-pricing-wc-paid-listings/shortcode-job-package-button.php:22

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: pricing, sales, job board

better-pricing-wc-paid-listings/better-pricing-wc-paid-listings.php Passed 13 tests

The principal PHP file in "Better Pricing for WC Paid Listings" v. 1.0.1 is loaded by WordPress automatically on each request
127 characters long description:
Boost your sales by building a custom pricing page and skip the limited "Choose a Package" screen provided by WC Paid Listings.

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
No dangerous file extensions were detected19 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26919

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin