89% qanva-analog-clock-for-elementor

Code Review | Qanva Custom Mouse for Elementor

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

About plugin

  • Plugin page: qanva-analog-cloc...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 17, 2021
  • Latest release: Sep 8, 2023
  • Number of updates: 27
  • Update frequency: every 23.4 days
  • Top authors: workbenchwtf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,796 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Qanva Custom Mouse for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.64 ▼5.33
Dashboard /wp-admin3.34 ▲0.0344.46 ▼2.56
Posts /wp-admin/edit.php3.39 ▲0.0348.86 ▼4.19
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.84 ▼16.97
Media Library /wp-admin/upload.php3.26 ▲0.0337.44 ▲1.96

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

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

Browser metrics Passed 4 tests

Qanva Custom Mouse for Elementor: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲10814.47 ▲0.091.89 ▲0.0840.37 ▲0.31
Dashboard /wp-admin2,227 ▲394.84 ▼1.0498.32 ▼2.2439.54 ▼4.68
Posts /wp-admin/edit.php2,106 ▲172.01 ▲0.0140.90 ▼2.3836.51 ▲0.16
Add New Post /wp-admin/post-new.php1,552 ▲1923.45 ▲0.38677.33 ▲102.4961.03 ▲12.47
Media Library /wp-admin/upload.php1,400 ▲154.21 ▼0.11102.89 ▲8.5745.14 ▲4.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Requires php: Invalid plugin version format
  • Screenshots: Please add an image for screenshot #3 (Live on a website (example properties))
The official readme.txt might help

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

"Qanva Custom Mouse for Elementor" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("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 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected668 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP25618406
JavaScript31012180
PO File1569780
CSS2282

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity7.00
▷ Minimum class complexity5.00
▷ Maximum class complexity9.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods22
▷ Static methods14.55%
▷ Public methods1986.36%
▷ Protected methods29.09%
▷ Private methods14.55%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
controls/css/chosen-sprite.png0.53KB0.88KB0.00%
controls/css/chosen-sprite@2x.png0.72KB0.83KB0.00%