89% fria-single-value-chart

Code Review | FRIA Single Value Chart

WordPress plugin FRIA Single Value Chart scored89%from 54 tests.

About plugin

  • Plugin page: fria-single-value...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.5
  • WordPress version: 6.3.1
  • First release: Jul 22, 2020
  • Latest release: Aug 6, 2020
  • Number of updates: 6
  • Update frequency: every 2.5 days
  • Top authors: fbiberger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /396 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

A check of server-side resources used by FRIA Single Value Chart
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.20 ▼3.74
Dashboard /wp-admin3.31 ▲0.0144.64 ▼4.03
Posts /wp-admin/edit.php3.36 ▲0.0145.59 ▼2.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.02 ▼15.97
Media Library /wp-admin/upload.php3.23 ▲0.0036.14 ▲0.20

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

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

Browser metrics Passed 4 tests

A check of browser resources used by FRIA Single Value Chart
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.23 ▼1.151.49 ▼0.2244.85 ▲6.30
Dashboard /wp-admin2,206 ▲144.88 ▼0.00105.27 ▼10.6636.57 ▼4.34
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0339.02 ▼2.0637.24 ▼0.34
Add New Post /wp-admin/post-new.php1,531 ▼223.51 ▲0.08675.98 ▲47.9465.31 ▼1.37
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0492.66 ▼6.1440.84 ▼1.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Inline edit the value and subtitle), #2 (Change color, font and arrowType in Gutenberg sidebar), #3 (Change arrow orientation)
Please take inspiration from this readme.txt

fria-single-value-chart/plugin.php 85% from 13 tests

"FRIA Single Value Chart" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fria-single-value-chart.php" instead of "plugin.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected15,981 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
JSON20015,370
JavaScript184518326
Markdown2550146
Sass314189
PHP2105648
CSS2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.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
6 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/logo-128x128.png3.35KB2.00KB▼ 40.49%
assets/block_config.png31.52KB8.64KB▼ 72.58%
assets/logo-256x256.png6.08KB3.23KB▼ 46.82%
assets/banner-1544x500.png18.97KB8.50KB▼ 55.20%
assets/banner-772x250.png8.77KB4.63KB▼ 47.21%