84% code-formatter-for-powerbi

Code Review | Code formatter for PowerBI

WordPress plugin Code formatter for PowerBI scored84%from 54 tests.

About plugin

  • Plugin page: code-formatter-fo...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Dec 14, 2020
  • Latest release: Dec 14, 2020
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: mogular (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /485 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.49ms] Passed 4 tests

Server-side resources used by Code formatter for PowerBI
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0245.10 ▲2.29
Dashboard /wp-admin3.33 ▲0.0250.89 ▲1.73
Posts /wp-admin/edit.php3.38 ▲0.0249.29 ▲0.56
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.19 ▼6.52
Media Library /wp-admin/upload.php3.25 ▲0.0234.39 ▼1.74

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Code formatter for PowerBI
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.27 ▼0.392.10 ▼0.0244.71 ▲0.66
Dashboard /wp-admin2,198 ▲215.62 ▼0.0598.56 ▼3.1644.23 ▲0.13
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0238.95 ▲0.7337.67 ▼2.02
Add New Post /wp-admin/post-new.php1,539 ▲1322.73 ▼0.83662.00 ▲44.4452.94 ▼7.32
Media Library /wp-admin/upload.php1,394 ▼64.15 ▼0.05112.09 ▲4.0045.59 ▼0.08

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/code-formatter-for-powerbi/pbiformatter.php:107

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: powerquery, powerbi, m, dax, code

code-formatter-for-powerbi/pbiformatter.php 85% from 13 tests

The main PHP script in "Code formatter for PowerBI" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 209 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("code-formatter-for-powerbi.php" instead of "pbiformatter.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected89 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1131383
CSS1426

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
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
No PNG images were found in this plugin