83% qanva-powertools-for-elementor

Code Review | Qanva Powertools for Elementor

WordPress plugin Qanva Powertools for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: qanva-powertools-...
  • Plugin version: 2.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 9, 2021
  • Latest release: Aug 31, 2023
  • Number of updates: 41
  • Update frequency: every 15.4 days
  • Top authors: workbenchwtf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,014 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.94ms] Passed 4 tests

Analyzing server-side resources used by Qanva Powertools for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.56 ▼5.52
Dashboard /wp-admin3.31 ▼0.0353.17 ▼9.93
Posts /wp-admin/edit.php3.36 ▲0.0146.73 ▼3.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.46 ▼16.38
Media Library /wp-admin/upload.php3.23 ▲0.0036.32 ▼2.67

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Qanva Powertools for Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.58 ▼1.011.74 ▼0.2443.45 ▲2.72
Dashboard /wp-admin2,227 ▲395.87 ▲0.06112.33 ▲1.1444.26 ▲1.59
Posts /wp-admin/edit.php2,106 ▲202.02 ▲0.0134.89 ▼0.9735.77 ▲3.86
Add New Post /wp-admin/post-new.php1,550 ▲3623.27 ▲5.58678.97 ▼42.2474.12 ▲17.36
Media Library /wp-admin/upload.php1,406 ▲214.22 ▼0.0398.92 ▼8.3143.85 ▼1.78

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 9 options in the database
    • qanva_buttons_for_elementor_fontaw
    • db_upgraded
    • qanva_buttons_for_elementor
    • qanva_buttons_for_elementor_font
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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 | 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/qanva-powertools-for-elementor/settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Requires php: Version not formatted correctly
You can look at the official readme.txt

qanva-powertools-for-elementor/qanva-powertools-for-elementor.php 85% from 13 tests

The primary PHP file in "Qanva Powertools for Elementor" version 2.2.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,148 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PO File66611,312851
PHP38836715
JavaScript44020325
CSS362244
SVG20013

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity24.50
▷ Minimum class complexity2.00
▷ Maximum class complexity47.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods24
▷ Static methods312.50%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin