84% alpha-price-table-for-elementor

Code Review | Alpha Price Table For Elementor

WordPress plugin Alpha Price Table For Elementor scored84%from 54 tests.

About plugin

  • Plugin page: alpha-price-table...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 5, 2021
  • Latest release: Aug 17, 2023
  • Number of updates: 27
  • Update frequency: every 29.7 days
  • Top authors: ali7ali (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,562 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 gracefully, with no errors

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

Analyzing server-side resources used by Alpha Price Table For Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.28 ▼8.33
Dashboard /wp-admin3.34 ▲0.0344.70 ▼9.44
Posts /wp-admin/edit.php3.39 ▲0.0349.49 ▲1.34
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.16 ▲3.45
Media Library /wp-admin/upload.php3.26 ▲0.0334.05 ▼3.69

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Alpha Price Table For Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7413.27 ▼1.151.55 ▼0.1337.08 ▼7.62
Dashboard /wp-admin2,223 ▲354.85 ▼1.05113.32 ▼4.5343.17 ▼2.11
Posts /wp-admin/edit.php2,108 ▲162.01 ▼0.0441.16 ▲5.5436.36 ▲5.11
Add New Post /wp-admin/post-new.php1,551 ▲3223.33 ▲0.17608.08 ▲18.2957.14 ▼10.01
Media Library /wp-admin/upload.php1,411 ▲324.24 ▲0.0497.30 ▼4.5543.18 ▲0.82

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/alpha-price-table-for-elementor/index.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: price, price-table, compare, drag-and-drop, page builder...

alpha-price-table-for-elementor/alpha-price-table-for-elementor.php Passed 13 tests

"Alpha Price Table For Elementor" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
34 characters long description:
Premium Price Table for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected959 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4125143902
Markdown134056
CSS1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity24.50
▷ Minimum class complexity19.00
▷ Maximum class complexity30.00
Average method complexity3.61
▷ Minimum method complexity1.00
▷ Maximum method complexity30.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%
Constants9
▷ Global constants777.78%
▷ Class constants222.22%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin