90% viubox-syz

Code Review | ViuBox SYZ

WordPress plugin ViuBox SYZ scored90%from 54 tests.

About plugin

  • Plugin page: viubox-syz
  • Plugin version: 2.2.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.0.2
  • WordPress version: 6.3.1
  • First release: Mar 11, 2022
  • Latest release: Oct 26, 2022
  • Number of updates: 21
  • Update frequency: every 10.9 days
  • Top authors: alyanqq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /684 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼9.56ms] Passed 4 tests

Server-side resources used by ViuBox SYZ
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0941.24 ▲3.27
Dashboard /wp-admin3.40 ▲0.1049.96 ▲0.10
Posts /wp-admin/edit.php3.45 ▲0.0945.95 ▼5.79
Add New Post /wp-admin/post-new.php5.98 ▲0.0981.62 ▼29.97
Media Library /wp-admin/upload.php3.33 ▲0.0932.85 ▼2.58

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for ViuBox SYZ
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.17 ▼1.211.67 ▲0.1543.63 ▲2.73
Dashboard /wp-admin2,222 ▲374.85 ▼1.01103.47 ▲4.5641.04 ▼6.01
Posts /wp-admin/edit.php2,105 ▲132.01 ▼0.0434.06 ▼7.6634.47 ▼1.36
Add New Post /wp-admin/post-new.php1,546 ▲123.37 ▲5.06676.99 ▲21.8753.89 ▲0.10
Media Library /wp-admin/upload.php1,398 ▲164.18 ▼0.01105.78 ▲5.7645.49 ▲2.31

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: ai, fitting, measurement, recommendation, sizing

viubox-syz/ViuBox.php 92% from 13 tests

The main PHP file in "ViuBox SYZ" ver. 2.2.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("viubox-syz.php" instead of "ViuBox.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin723 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP14359430
JavaScript41447211
CSS215082

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin