74% anyviz

Code Review | AnyViz

WordPress plugin AnyViz scored74%from 54 tests.

About plugin

  • Plugin page: anyviz
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: Oct 7, 2021
  • Latest release: Jul 1, 2022
  • Number of updates: 6
  • Update frequency: every 68.5 days
  • Top authors: mirasoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /675 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.94MB] [CPU: ▼38.30ms] Passed 4 tests

This is a short check of server-side resources used by AnyViz
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.76 ▼0.13
Dashboard /wp-admin3.01 ▼0.3324.68 ▼34.30
Posts /wp-admin/edit.php3.02 ▼0.3423.18 ▼25.87
Add New Post /wp-admin/post-new.php3.02 ▼2.8823.99 ▼79.86
Media Library /wp-admin/upload.php3.02 ▼0.2222.18 ▼13.17
AnyViz /wp-admin/options-general.php?page=anyviz/anyviz.php3.0223.53

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: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by AnyViz
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.26 ▼1.001.92 ▲0.2744.92 ▲4.83
Dashboard /wp-admin2,207 ▲195.86 ▲0.96107.37 ▲3.1841.46 ▼1.52
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0435.18 ▼5.3935.36 ▼0.99
Add New Post /wp-admin/post-new.php1,537 ▲1723.37 ▲0.14668.11 ▲75.9461.45 ▲12.15
Media Library /wp-admin/upload.php1,395 ▲44.22 ▲0.03102.10 ▲6.3947.44 ▲5.18
AnyViz /wp-admin/options-general.php?page=anyviz/anyviz.php8702.0424.5523.95

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=anyviz/anyviz.php
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: plc, cloud hmi, iiot, iot

anyviz/anyviz.php Passed 13 tests

The principal PHP file in "AnyViz" v. 1.0.1 is loaded by WordPress automatically on each request
88 characters long description:
This Plugin connects to the AnyViz Cloud via REST API and shows Tag values by Shortcodes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin118 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13516118

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
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

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
content/icon.png0.38KB0.55KB0.00%