90% huge-addons-for-visual-composer-lite

Code Review | Huge Addons for Visual Composer Lite

WordPress plugin Huge Addons for Visual Composer Lite scored90%from 54 tests.

About plugin

  • Plugin page: huge-addons-for-v...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 9, 2018
  • Latest release: Jan 10, 2018
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: brainesia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /708 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.00MB] [CPU: ▲0.39ms] Passed 4 tests

An overview of server-side resources used by Huge Addons for Visual Composer Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.21 ▲1.44
Dashboard /wp-admin3.31 ▲0.0062.76 ▲12.94
Posts /wp-admin/edit.php3.36 ▲0.0051.63 ▲3.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.30 ▼4.71
Media Library /wp-admin/upload.php3.23 ▲0.0034.41 ▲1.59

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Huge Addons for Visual Composer Lite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.34 ▼1.042.20 ▲0.5648.21 ▲6.27
Dashboard /wp-admin2,203 ▲185.79 ▼0.08112.47 ▲10.5143.76 ▲0.05
Posts /wp-admin/edit.php2,092 ▼01.99 ▼0.0237.28 ▼3.4337.45 ▲2.04
Add New Post /wp-admin/post-new.php1,514 ▼017.91 ▲0.40702.44 ▲44.9854.65 ▼2.60
Media Library /wp-admin/upload.php1,379 ▼124.16 ▼0.0294.97 ▼7.2142.71 ▼3.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: visual composer, addons, page builder

huge-addons-for-visual-composer-lite/huge-addons-for-visual-composer-lite.php 92% from 13 tests

This is the main PHP file of "Huge Addons for Visual Composer Lite" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected6,048 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS519352,970
SVG4001,965
PHP71571451,085
JavaScript241028

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity19.33
▷ Minimum class complexity4.00
▷ Maximum class complexity50.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes233.33%
▷ Concrete classes466.67%
▷ Final classes125.00%
Methods43
▷ Static methods12.33%
▷ Public methods2148.84%
▷ Protected methods818.60%
▷ Private methods1432.56%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants327.27%
▷ Class constants872.73%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon.png14.24KB6.41KB▼ 54.97%