84% alpha-single-product-for-elementor

Code Review | Alpha Single Product For Elementor

WordPress plugin Alpha Single Product For Elementor scored84%from 54 tests.

About plugin

  • Plugin page: alpha-single-prod...
  • 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 9, 2021
  • Latest release: Aug 17, 2023
  • Number of updates: 90
  • Update frequency: every 8.9 days
  • Top authors: ali7ali (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,171 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.44ms] Passed 4 tests

Server-side resources used by Alpha Single Product For Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0340.03 ▼4.49
Dashboard /wp-admin3.39 ▼0.0050.69 ▼14.55
Posts /wp-admin/edit.php3.50 ▲0.1056.44 ▲2.23
Add New Post /wp-admin/post-new.php5.97 ▲0.0494.88 ▼12.91
Media Library /wp-admin/upload.php3.31 ▲0.0439.05 ▲2.19

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Alpha Single Product For Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8714.70 ▲0.352.01 ▲0.1042.15 ▼0.19
Dashboard /wp-admin2,211 ▲345.52 ▼0.1088.07 ▼1.7942.63 ▼3.67
Posts /wp-admin/edit.php2,119 ▲162.16 ▲0.1441.71 ▼6.6440.73 ▲3.05
Add New Post /wp-admin/post-new.php1,542 ▲523.40 ▲5.35634.36 ▼55.1559.92 ▼6.34
Media Library /wp-admin/upload.php1,416 ▲164.18 ▼0.0397.91 ▼6.9243.38 ▼6.34

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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 | 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/alpha-single-product-for-elementor/index.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
10 plugin tags: elementor, alpha, premium, product, drag-and-drop...

alpha-single-product-for-elementor/alpha-single-product-for-elementor.php Passed 13 tests

The primary PHP file in "Alpha Single Product For Elementor" version 1.0.4 is used by WordPress to initiate all plugin functionality
54 characters long description:
Single WooCommerce Product Widget Addon For Elementor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected812 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4114173754
Markdown134057
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity15.50
▷ Minimum class complexity13.00
▷ Maximum class complexity18.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods21
▷ Static methods14.76%
▷ Public methods1990.48%
▷ Protected methods29.52%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants9
▷ Global constants777.78%
▷ Class constants222.22%
▷ Public constants2100.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
There were not PNG files found in your plugin