71% cryptocurrency-widgets-for-elementor

Code Review | Cryptocurrency Widgets For Elementor

WordPress plugin Cryptocurrency Widgets For Elementor scored71%from 54 tests.

About plugin

  • Plugin page: cryptocurrency-wi...
  • Plugin version: 1.5.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Jul 23, 2021
  • Latest release: Nov 16, 2023
  • Number of updates: 33
  • Update frequency: every 25.7 days
  • Top authors: coolplugins (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

2,000+ active /33,127 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.44MB] [CPU: ▼5.01ms] 75% from 4 tests

Analyzing server-side resources used by Cryptocurrency Widgets For Elementor
Please take the time to fix the following items
  • CPU: Total CPU usage should be kept under 500.00ms (currently 961.59ms on /wp-admin/admin.php?page=cool-crypto-plugins)
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3337.05 ▼6.86
Dashboard /wp-admin3.83 ▲0.5248.46 ▼4.57
Posts /wp-admin/edit.php3.87 ▲0.5148.92 ▲4.91
Add New Post /wp-admin/post-new.php6.36 ▲0.4682.37 ▼10.98
Media Library /wp-admin/upload.php3.68 ▲0.4534.34 ▲2.38
Dashboard /wp-admin/admin.php?page=cool-crypto-plugins3.73961.59
Open Exchange API /wp-admin/admin.php?page=openexchange-api-settings3.6641.50
↳ Settings /wp-admin/admin.php?page=ccew-settings3.6634.50

Server storage [IO: ▲6.16MB] [DB: ▲0.68MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 672 new files
Database: 1 new table, 14 new options
New tables
wp_ccew_coins
New WordPress options
db_upgraded
ccew-v
widget_recent-comments
wp_ccew_coins_db_version
CCEW_FREE_VERSION
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
ccew-alreadyRated
ccew_data_save
...

Browser metrics Passed 4 tests

A check of browser resources used by Cryptocurrency Widgets For Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲11614.29 ▼0.061.54 ▼0.1843.79 ▲2.82
Dashboard /wp-admin2,286 ▲1095.68 ▲0.0793.97 ▲6.0543.97 ▲5.05
Posts /wp-admin/edit.php2,192 ▲922.06 ▲0.1041.04 ▲4.5842.48 ▲9.84
Add New Post /wp-admin/post-new.php1,596 ▲7023.65 ▲0.43705.69 ▲8.1051.76 ▼5.81
Media Library /wp-admin/upload.php1,485 ▲884.26 ▲0.00100.96 ▼1.7845.10 ▲2.59
Dashboard /wp-admin/admin.php?page=cool-crypto-plugins1,2172.1227.5444.75
Open Exchange API /wp-admin/admin.php?page=openexchange-api-settings8732.1028.6132.21
↳ Settings /wp-admin/admin.php?page=ccew-settings9201.8426.5238.85

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 13 options in the database
    • CCEW_FREE_VERSION
    • widget_recent-posts
    • db_upgraded
    • ccew-v
    • widget_recent-comments
    • cool-crypto-plugins-crypto-pro
    • theysaidso_admin_options
    • can_compress_scripts
    • cool-crypto-plugins-crypto
    • ccew_activation_time
    • ...

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/cryptocurrency-widgets-for-elementor/admin/addon-dashboard-page/includes/cool_plugins_downloader.php
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ccew\\feedback\\add_action() in wp-content/plugins/cryptocurrency-widgets-for-elementor/admin/feedback/admin-feedback-form.php:18
    • > PHP Warning
      Use of undefined constant CCEW_VERSION - assumed 'CCEW_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/cryptocurrency-widgets-for-elementor/admin/feedback/admin-feedback-form.php on line 170
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cryptocurrency-widgets-for-elementor/admin/settings.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cryptocurrency-widgets-for-elementor/includes/ccew-elementor-register.php:9
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/cryptocurrency-widgets-for-elementor/admin/addon-dashboard-page/includes/dashboard-header.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/cryptocurrency-widgets-for-elementor/admin/addon-dashboard-page/includes/dashboard-sidebar.php:8
    • > PHP Warning
      Use of undefined constant CCEW_URL - assumed 'CCEW_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/cryptocurrency-widgets-for-elementor/admin/feedback/admin-feedback-form.php on line 170
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cryptocurrency-widgets-for-elementor/admin/openexchange-api-settings.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ccew-settings
    • > Network (severe)
    wp-content/plugins/cryptocurrency-widgets-for-elementor/assets/CSS/ccew-admin.css?ver=1.5.7 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
Attributes that require attention: You can look at the official readme.txt

cryptocurrency-widgets-for-elementor/cryptocurrency-widgets-for-elementor.php 77% from 13 tests

The principal PHP file in "Cryptocurrency Widgets For Elementor" v. 1.5.7 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")
  • Domain Path: The domain path should be prefixed 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
There were no executable files found in this plugin34,128 lines of code in 414 files:
LanguageFilesBlank linesComment linesLines of code
SVG357596824,177
PHP215663714,340
JavaScript1887693,034
CSS18427962,577

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity17.00
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods90
▷ Static methods44.44%
▷ Public methods8392.22%
▷ Protected methods55.56%
▷ Private methods22.22%
Functions27
▷ Named functions2696.30%
▷ Anonymous functions13.70%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
212 PNG files occupy 1.45MB with 0.78MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) assets/images/logos/klay-token.png3.47KB0.00KB▼ 100.00%
admin/addon-dashboard-page/assets/images/cryptocurrency-widgets-for-elementor.png16.65KB5.16KB▼ 69.04%
assets/images/logos/bitcoinbrand.png2.47KB2.49KB0.00%
assets/images/logos/braintrust.png1.27KB1.30KB0.00%
(invalid) assets/images/logos/vulcan-forged.png4.40KB0.00KB▼ 100.00%