83% pricing-table-addon-for-elementor

Code Review | Pricing table addon for elementor

WordPress plugin Pricing table addon for elementor scored83%from 54 tests.

About plugin

  • Plugin page: pricing-table-add...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 27, 2021
  • Latest release: Jun 27, 2021
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: kardi420 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /442 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.15ms] Passed 4 tests

Analyzing server-side resources used by Pricing table addon for elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.41 ▲0.15
Dashboard /wp-admin3.34 ▲0.0447.37 ▼2.26
Posts /wp-admin/edit.php3.39 ▲0.0343.72 ▼7.18
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.02 ▼11.32
Media Library /wp-admin/upload.php3.26 ▲0.0337.07 ▲7.12

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pricing table addon for elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲9713.63 ▼0.665.00 ▲3.4942.66 ▲4.21
Dashboard /wp-admin2,224 ▲364.85 ▼0.22104.25 ▼9.0240.08 ▼3.12
Posts /wp-admin/edit.php2,106 ▲172.02 ▼0.1037.91 ▼3.9535.81 ▲0.90
Add New Post /wp-admin/post-new.php1,530 ▼317.73 ▼5.26645.98 ▲16.5455.70 ▲7.10
Media Library /wp-admin/upload.php1,406 ▲184.20 ▲0.0294.90 ▲0.8640.82 ▼0.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/pricing-table-addon-for-elementor/widgets/view.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/pricing-table-addon-for-elementor/widgets/pricing-table-widget.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/pricing-table-addon-for-elementor/widgets/view1.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/pricing-table-addon-for-elementor/widgets/view2.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
Please take inspiration from this readme.txt

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

"Pricing table addon for elementor" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("pricing-table-addon-for-elementor.php" instead of "wtt-elementor-extension.php")
  • Domain Path: The domain path folder does not exist ("/languages")

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
Everything looks great! No dangerous files found in this plugin3,179 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS356162,621
PHP5186248558

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity4.50
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.39
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods18
▷ Static methods15.56%
▷ Public methods1688.89%
▷ Protected methods211.11%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon.png2.83KB0.94KB▼ 66.76%