83% charts-and-graphs-for-elementor

Code Review | Charts and Graphs for Elementor

WordPress plugin Charts and Graphs for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: charts-and-graphs...
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.1
  • WordPress version: 6.3.1
  • First release: Jan 15, 2020
  • Latest release: May 10, 2021
  • Number of updates: 10
  • Update frequency: every 48.1 days
  • Top authors: redlettuce (70%)kazbekkadalashvili (40%)

Code review

54 tests

User reviews

9 reviews

Install metrics

600+ active /12,715 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.82ms] Passed 4 tests

An overview of server-side resources used by Charts and Graphs for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.43 ▼1.50
Dashboard /wp-admin3.31 ▲0.0145.04 ▲1.79
Posts /wp-admin/edit.php3.36 ▲0.0145.74 ▼2.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.71 ▼7.76
Media Library /wp-admin/upload.php3.24 ▲0.0133.93 ▲0.67

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
pdf_elementor_activation_time
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Charts and Graphs for Elementor: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.21 ▼1.251.71 ▼0.1541.99 ▼6.14
Dashboard /wp-admin2,232 ▲446.01 ▲1.13101.68 ▼13.6243.20 ▼3.73
Posts /wp-admin/edit.php2,117 ▲252.13 ▲0.1234.29 ▼8.1639.13 ▲2.99
Add New Post /wp-admin/post-new.php1,557 ▲3823.35 ▲0.36652.20 ▲33.0453.71 ▲3.41
Media Library /wp-admin/upload.php1,420 ▲354.14 ▼0.1197.33 ▼3.1643.28 ▲0.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • pdf_elementor_activation_time
    • db_upgraded

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ElementorChartsGraphs\\add_action() in wp-content/plugins/charts-and-graphs-for-elementor/plugin.php:79

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed: You can look at the official readme.txt

charts-and-graphs-for-elementor/index.php 85% from 13 tests

The main file in "Charts and Graphs for Elementor" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("charts-and-graphs-for-elementor.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,055 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP31282701,023
Markdown110031
JavaScript1061

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity12.33
▷ Minimum class complexity2.00
▷ Maximum class complexity23.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods23
▷ Static methods14.35%
▷ Public methods1982.61%
▷ Protected methods313.04%
▷ Private methods14.35%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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