84% advanced-pricing-addon-wpbakery

Code Review | Advanced Pricing Addon For Wp Bakery

WordPress plugin Advanced Pricing Addon For Wp Bakery scored84%from 54 tests.

About plugin

  • Plugin page: advanced-pricing-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.9
  • WordPress version: 6.3.1
  • First release: Aug 1, 2021
  • Latest release: Feb 14, 2022
  • Number of updates: 5
  • Update frequency: every 39.8 days
  • Top authors: umairsaleem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,146 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.20ms] Passed 4 tests

Analyzing server-side resources used by Advanced Pricing Addon For Wp Bakery
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.20 ▼3.65
Dashboard /wp-admin3.31 ▼0.0350.71 ▼18.71
Posts /wp-admin/edit.php3.36 ▲0.0050.13 ▲3.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.67 ▼10.72
Media Library /wp-admin/upload.php3.23 ▲0.0038.88 ▲0.30

Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Pricing Addon For Wp Bakery
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲8713.18 ▼1.192.10 ▲0.0739.66 ▼9.32
Dashboard /wp-admin2,218 ▲125.81 ▼0.0897.10 ▼10.5837.39 ▼0.07
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0335.53 ▼1.3634.78 ▼3.86
Add New Post /wp-admin/post-new.php1,545 ▼022.86 ▼0.41635.19 ▼2.7760.25 ▲13.52
Media Library /wp-admin/upload.php1,397 ▼34.23 ▲0.02107.21 ▼2.3450.63 ▲6.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/advanced-pricing-addon-wpbakery/inc/advanced-pricing-vc-module.php
    • > /wp-content/plugins/advanced-pricing-addon-wpbakery/advanced-pricing-addon-wpbakery.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: easy softonic, visual composer module, easysoftonic, addon, js composer...

advanced-pricing-addon-wpbakery/advanced-pricing-addon-wpbakery.php 92% from 13 tests

"Advanced Pricing Addon For Wp Bakery" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 154 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin687 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23838398
CSS1267289

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity7.50
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/module-icon.png2.20KB1.13KB▼ 48.56%
assets/images/menuicon.png1.29KB0.67KB▼ 48.30%