89% qanva-custom-mouse-for-elementor

Code Review | Qanva Custom Mouse for Elementor

WordPress plugin Qanva Custom Mouse for Elementor scored89%from 54 tests.

About plugin

  • Plugin page: qanva-custom-mous...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.9.2
  • WordPress version: 6.3.1
  • First release: Dec 21, 2021
  • Latest release: Jun 9, 2022
  • Number of updates: 17
  • Update frequency: every 36.6 days
  • Top authors: workbenchwtf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,204 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by Qanva Custom Mouse for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.73 ▲2.60
Dashboard /wp-admin3.34 ▼0.0144.57 ▼14.09
Posts /wp-admin/edit.php3.39 ▲0.0347.63 ▲0.64
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.53 ▼17.41
Media Library /wp-admin/upload.php3.26 ▲0.0336.47 ▲1.49

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Qanva Custom Mouse for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4713.69 ▼0.671.88 ▼0.0144.64 ▲7.02
Dashboard /wp-admin2,224 ▲364.85 ▼0.95101.19 ▼4.6537.42 ▼6.97
Posts /wp-admin/edit.php2,111 ▲222.09 ▲0.1041.98 ▲2.9934.58 ▲1.82
Add New Post /wp-admin/post-new.php1,546 ▲3223.17 ▲5.61648.89 ▼13.8760.62 ▲8.37
Media Library /wp-admin/upload.php1,409 ▲184.27 ▲0.0896.94 ▼5.1341.77 ▼6.39

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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)
Everything seems fine, however this is by no means an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Requires php: Invalid version format
The official readme.txt is a good inspiration

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

The primary PHP file in "Qanva Custom Mouse for Elementor" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")

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
There were no executable files found in this plugin632 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP24716283
JavaScript23313212
PO File1364977
CSS20060

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.00
▷ Minimum class complexity5.00
▷ Maximum class complexity9.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods21
▷ Static methods14.76%
▷ Public methods1885.71%
▷ Protected methods29.52%
▷ Private methods14.76%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin