84% wptd-chart

Code Review | Advance Chart Addon for Elementor - WPTD

WordPress plugin Advance Chart Addon for Elementor - WPTD scored84%from 54 tests.

About plugin

  • Plugin page: wptd-chart
  • Plugin version: 1.1
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Apr 23, 2021
  • Latest release: Sep 24, 2022
  • Number of updates: 13
  • Update frequency: every 40.2 days
  • Top authors: wpthemedevelopers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /606 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
Install script ran successfully

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

An overview of server-side resources used by Advance Chart Addon for Elementor - WPTD
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.60 ▼7.67
Dashboard /wp-admin3.32 ▲0.0143.54 ▼2.08
Posts /wp-admin/edit.php3.37 ▲0.0146.24 ▲3.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.70 ▼11.53
Media Library /wp-admin/upload.php3.24 ▲0.0133.49 ▲2.77

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advance Chart Addon for Elementor - WPTD
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.34 ▲0.081.79 ▲0.0738.71 ▼4.13
Dashboard /wp-admin2,221 ▲415.64 ▼0.0891.88 ▲3.0639.89 ▲5.08
Posts /wp-admin/edit.php2,129 ▲262.02 ▲0.0240.85 ▼7.3237.71 ▼1.06
Add New Post /wp-admin/post-new.php1,558 ▲2418.56 ▲0.44608.40 ▲11.7160.15 ▼8.21
Media Library /wp-admin/upload.php1,426 ▲234.22 ▼0.1597.09 ▼5.0242.35 ▼1.97

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

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 | 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
Please take a closer look at the following
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/wptd-chart/inc/class.elementor.settings.php:53
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Plugin' not found in wp-content/plugins/wptd-chart/inc/class.wptd-chart.php:51
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wptd-chart/widgets/chart.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wptd-chart/admin/admin-page.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wptd-chart/admin/wptd-settings.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
10 plugin tags: data to chart, chart, free chart, elementor chart, line chart...

wptd-chart/wptd-chart.php 92% from 13 tests

The principal PHP file in "Advance Chart Addon for Elementor - WPTD" v. 1.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 267 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected859 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP7109247533
CSS31421197
JavaScript21613117
SVG10012

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.60
▷ Minimum class complexity2.00
▷ Maximum class complexity31.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes240.00%
Methods33
▷ Static methods515.15%
▷ Public methods3193.94%
▷ Protected methods26.06%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png9.15KB4.38KB▼ 52.19%