83% powerful-addons-for-visual-composer-lite

Code Review | Powerful Addons for Visual Composer - Lite

WordPress plugin Powerful Addons for Visual Composer - Lite scored83%from 54 tests.

About plugin

  • Plugin page: powerful-addons-f...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4.2
  • WordPress version: 6.3.1
  • First release: Jun 4, 2020
  • Latest release: Aug 1, 2020
  • Number of updates: 6
  • Update frequency: every 10.0 days
  • Top authors: webempire (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /486 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.93ms] Passed 4 tests

Server-side resources used by Powerful Addons for Visual Composer - Lite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.08 ▼3.76
Dashboard /wp-admin3.33 ▲0.0342.80 ▼6.63
Posts /wp-admin/edit.php3.38 ▲0.0346.00 ▼0.69
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.26 ▼16.64
Media Library /wp-admin/upload.php3.26 ▲0.0335.75 ▲1.39

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Powerful Addons for Visual Composer - Lite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲8713.34 ▼0.971.70 ▼0.1643.98 ▼1.72
Dashboard /wp-admin2,225 ▲375.77 ▼0.1397.13 ▼8.1942.12 ▼4.36
Posts /wp-admin/edit.php2,110 ▲212.04 ▲0.0136.06 ▲0.0435.84 ▲0.25
Add New Post /wp-admin/post-new.php1,536 ▼017.67 ▼5.40674.14 ▲16.8961.45 ▲7.69
Media Library /wp-admin/upload.php1,407 ▲224.21 ▲0.0598.07 ▼4.3142.35 ▼0.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/powerful-addons-for-visual-composer-lite/public/powerful-vc-admin.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Powerful_VC_Helper' not found in wp-content/plugins/powerful-addons-for-visual-composer-lite/public/powerful-vc-general.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: visual composer addon, visual editor, drag-and-drop, visual composer, visual builder

powerful-addons-for-visual-composer-lite/powerful-visualcomposer-lite.php 77% from 13 tests

The main PHP file in "Powerful Addons for Visual Composer - Lite" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 192 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("powerful-addons-for-visual-composer-lite.php" instead of "powerful-visualcomposer-lite.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
Everything looks great! No dangerous files found in this plugin1,202 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP10186423574
CSS13710307
JavaScript95353169
JSON50095
Markdown123056
SVG1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity7.17
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.13
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes233.33%
Methods32
▷ Static methods1959.38%
▷ Public methods3093.75%
▷ Protected methods00.00%
▷ Private methods26.25%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants11
▷ Global constants11100.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
3 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
addons/powerfulSeparator/powerfulSeparator/public/preview-powerful-separator.png34.03KB13.36KB▼ 60.74%
addons/powerfulSeparator/powerfulSeparator/public/thumbnail-powerful-separator.png8.24KB4.58KB▼ 44.39%
addons/ribbon/ribbon/public/preview-ribbon-element.png35.05KB13.38KB▼ 61.83%