83% ultimate-pricing-addon-for-elementor

Code Review | Ultimate Pricing Addon For Elementor

WordPress plugin Ultimate Pricing Addon For Elementor scored83%from 54 tests.

About plugin

  • Plugin page: ultimate-pricing-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8.2
  • WordPress version: 6.3.1
  • First release: Dec 4, 2021
  • Latest release: Dec 4, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: wppixels (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /254 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Ultimate Pricing Addon For Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.64 ▼1.72
Dashboard /wp-admin3.32 ▼0.0350.12 ▼17.67
Posts /wp-admin/edit.php3.37 ▲0.0144.02 ▼7.60
Add New Post /wp-admin/post-new.php5.90 ▲0.01104.33 ▲7.59
Media Library /wp-admin/upload.php3.24 ▲0.0139.12 ▼0.26

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Ultimate Pricing Addon For Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4514.25 ▼0.302.11 ▲0.3144.43 ▲0.29
Dashboard /wp-admin2,192 ▲155.48 ▼0.1389.19 ▼9.8239.51 ▼2.61
Posts /wp-admin/edit.php2,100 ▲32.02 ▲0.0233.21 ▼3.4332.34 ▼0.45
Add New Post /wp-admin/post-new.php1,526 ▼022.98 ▲0.17635.35 ▼34.5553.96 ▼4.58
Media Library /wp-admin/upload.php1,394 ▼34.20 ▲0.0499.78 ▼13.5143.22 ▼4.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\add_action() in wp-content/plugins/ultimate-pricing-addon-for-elementor/inc/helper.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\add_action() in wp-content/plugins/ultimate-pricing-addon-for-elementor/inc/helper.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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: addon, elementor, pricing addon, price table, wppixels...

ultimate-pricing-addon-for-elementor/ultimate-pricing-addon-elementor.php 77% from 13 tests

"Ultimate Pricing Addon For Elementor" version 1.0.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:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ultimate-pricing-addon-for-elementor.php" instead of "ultimate-pricing-addon-elementor.php")
  • Domain Path: The domain path is invalid: folder "/language" does not exist
  • 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 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin480 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP42079357
CSS1163123

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods466.67%
▷ Protected methods233.33%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin