94% iced-visualization-charts

Code Review | Iced Visualization Charts

WordPress plugin Iced Visualization Charts scored 94% from 54 tests.

About plugin

  • Plugin page: iced-visualizatio...
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.5.1
  • WordPress version: 5.8.1
  • First release: Jun 5, 2013
  • Latest release: Jun 12, 2013
  • Number of updates: 15
  • Update frequency: every 0.5 days
  • Top authors: harshaperla (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active / 2,747 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Iced Visualization Charts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1334.93 ▲8.62
Dashboard /wp-admin3.07 ▲0.0136.59 ▼7.35
Posts /wp-admin/edit.php3.12 ▲0.0145.33 ▲0.59
Add New Post /wp-admin/post-new.php5.43 ▼0.0088.55 ▼567.52
Media Library /wp-admin/upload.php3.01 ▲0.0132.02 ▲2.13

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Iced Visualization Charts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲9715.84 ▲0.2310.05 ▲1.9351.08 ▲4.05
Dashboard /wp-admin2,973 ▲365.92 ▼0.06154.52 ▲9.39115.07 ▲0.37
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0062.12 ▼0.5598.79 ▲11.38
Add New Post /wp-admin/post-new.php1,872 ▲20019.15 ▲0.32382.09 ▲19.51109.38 ▼3.42
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.03138.96 ▼7.24116.45 ▼3.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/iced-visualization-charts/iced-visualization-chart.php:34

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: google charts, graphs, piechart, google visualization, shortcode...

iced-visualization-charts/iced-visualization-chart.php 92% from 13 tests

"Iced Visualization Charts" version 0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("iced-visualization-charts.php" instead of "iced-visualization-chart.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected135 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript213392
PHP1111243

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png1.01KB1.06KB0.00%