78% everviz

Code Review | everviz - Charts, Maps and Tables - Interactive and responsive

WordPress plugin everviz - Charts, Maps and Tables - Interactive and responsive scored78%from 54 tests.

About plugin

  • Plugin page: everviz
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 1, 2021
  • Latest release: Feb 15, 2022
  • Number of updates: 38
  • Update frequency: every 9.3 days
  • Top authors: everviz (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /1,018 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.63MB] [CPU: ▼17.57ms] Passed 4 tests

An overview of server-side resources used by everviz - Charts, Maps and Tables - Interactive and responsive
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.09 ▼2.25
Dashboard /wp-admin3.35 ▲0.0445.68 ▼6.11
Posts /wp-admin/edit.php3.41 ▲0.0654.54 ▲2.16
Add New Post /wp-admin/post-new.php3.22 ▼2.6739.01 ▼64.06
Media Library /wp-admin/upload.php3.28 ▲0.0541.26 ▲5.66
everviz /wp-admin/options-general.php?page=everviz-settings3.2134.34

Server storage [IO: ▲0.62MB] [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: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by everviz - Charts, Maps and Tables - Interactive and responsive
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,183 ▲44826.05 ▲11.6643.93 ▲41.6239.01 ▼3.42
Dashboard /wp-admin2,304 ▲11311.69 ▲6.81137.41 ▲31.5942.93 ▼3.05
Posts /wp-admin/edit.php2,180 ▲9110.30 ▲8.3072.22 ▲30.3032.33 ▼5.17
Add New Post /wp-admin/post-new.php6,418 ▲4,88529.55 ▲6.47716.57 ▲102.9237.76 ▼21.30
Media Library /wp-admin/upload.php1,501 ▲11610.84 ▲6.63149.29 ▲48.1068.80 ▲26.42
everviz /wp-admin/options-general.php?page=everviz-settings8619.8372.9526.28

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=everviz-settings
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'everviz_highcharts_doAdminPage' not found or invalid function name

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/everviz/everviz-settings.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: pie, visualization, tables, charts, maps

everviz/highcharts-editor.php 92% from 13 tests

The main PHP file in "everviz - Charts, Maps and Tables - Interactive and responsive" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("everviz.php" instead of "highcharts-editor.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
Success! There were no dangerous files found in this plugin733 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS2411344
PHP3418154
JavaScript53132130
SVG202105

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
logo.png4.26KB2.53KB▼ 40.55%