89% saaspricing

Code Review | SaasPricing - Ultimate Pricing & Comparison Table Widget For Elementor

WordPress plugin SaasPricing - Ultimate Pricing & Comparison Table Widget For Elementor scored89%from 54 tests.

About plugin

  • Plugin page: saaspricing
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Mar 15, 2023
  • Latest release: Aug 16, 2023
  • Number of updates: 7
  • Update frequency: every 22.1 days
  • Top authors: debuggersstudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /246 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.68ms] Passed 4 tests

An overview of server-side resources used by SaasPricing - Ultimate Pricing & Comparison Table Widget For Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.10 ▼0.85
Dashboard /wp-admin3.35 ▲0.0547.60 ▼2.27
Posts /wp-admin/edit.php3.41 ▲0.0544.88 ▲1.75
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.36 ▼11.81
Media Library /wp-admin/upload.php3.28 ▲0.0536.07 ▲0.21

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

SaasPricing - Ultimate Pricing & Comparison Table Widget For Elementor: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.25 ▼1.194.13 ▲2.3239.89 ▼7.75
Dashboard /wp-admin2,227 ▲394.86 ▼0.0397.82 ▼17.2440.31 ▼3.05
Posts /wp-admin/edit.php2,106 ▲172.06 ▲0.0637.40 ▼1.3134.58 ▼0.48
Add New Post /wp-admin/post-new.php1,532 ▲1323.35 ▲0.28683.32 ▲0.2757.83 ▼0.18
Media Library /wp-admin/upload.php1,406 ▲184.36 ▲0.2095.77 ▼6.7343.82 ▼0.06

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: elementor pricing, comparison table, elementor table, price table

saaspricing/saaspricing.php 92% from 13 tests

"SaasPricing - Ultimate Pricing & Comparison Table Widget For Elementor" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 211 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin11,933 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP51,00611410,758
CSS5194181,059
JavaScript73015116

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 138)
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity73.75
▷ Minimum class complexity9.00
▷ Maximum class complexity139.00
Average method complexity8.46
▷ Minimum method complexity1.00
▷ Maximum method complexity138.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods39
▷ Static methods12.56%
▷ Public methods3076.92%
▷ Protected methods615.38%
▷ Private methods37.69%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin