78% pricing-table-for-elementor

Code Review | Pricing Table for Elementor

WordPress plugin Pricing Table for Elementor scored78%from 54 tests.

About plugin

  • Plugin page: pricing-table-for...
  • Plugin version: 0.9.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6
  • WordPress version: 6.3.1
  • First release: Mar 6, 2020
  • Latest release: Jan 8, 2021
  • Number of updates: 20
  • Update frequency: every 15.5 days
  • Top authors: plugindevs (75%)webbuilder03 (30%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /3,776 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.26ms] Passed 4 tests

An overview of server-side resources used by Pricing Table for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.25 ▲2.42
Dashboard /wp-admin3.39 ▲0.0547.14 ▼15.13
Posts /wp-admin/edit.php3.51 ▲0.1543.51 ▼1.44
Add New Post /wp-admin/post-new.php5.98 ▲0.0979.43 ▼15.46
Media Library /wp-admin/upload.php3.32 ▲0.0936.58 ▼1.02

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Pricing Table for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.22 ▼0.331.63 ▼0.0144.21 ▼1.05
Dashboard /wp-admin2,215 ▲385.62 ▼0.0596.35 ▼2.5043.05 ▼2.12
Posts /wp-admin/edit.php2,117 ▲171.99 ▼0.0335.01 ▼1.7932.78 ▼3.68
Add New Post /wp-admin/post-new.php1,540 ▲1223.38 ▲0.23668.09 ▼26.6370.88 ▲11.85
Media Library /wp-admin/upload.php1,420 ▲234.20 ▼0.0495.78 ▼5.3344.69 ▼1.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/pricing-table-for-elementor/templates/basic/template.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/pricing-table-for-elementor/templates/basic/template.php on line 126
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/pricing-table-for-elementor/widgets/pricing-table.php:12
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/pricing-table-for-elementor/templates/basic/template.php on line 126

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 90% from 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
4 plugin tags: elementor pricing comparison table, elementor pricing list, elementor pricing table, elementor pricing comparison list

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

"Pricing Table for Elementor" version 0.9.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
  • Description: Please keep the plugin description shorter than 140 characters (currently 263 characters long)

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
Success! There were no dangerous files found in this plugin1,427 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP52173051,295
CSS1328119
JavaScript113513

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity10.00
▷ Minimum class complexity2.00
▷ Maximum class complexity28.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods35
▷ Static methods12.86%
▷ Public methods3394.29%
▷ Protected methods25.71%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
There were not PNG files found in your plugin