83% all-in-one-wp-builder

Code Review | Page Builder - AIO WP Builder: #1 Website Builder for Wordpress

WordPress plugin Page Builder - AIO WP Builder: #1 Website Builder for Wordpress scored 83% from 54 tests.

About plugin

  • Plugin page: all-in-one-wp-bui...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.6
  • WordPress version: 5.9.2
  • First release: Jun 4, 2015
  • Latest release: Oct 21, 2016
  • Number of updates: 64
  • Update frequency: every 7.9 days
  • Top authors: staviravn (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

200+ active / 37,210 total downloads

Benchmarks

Plugin footprint 82% 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: ▲6.80MB] [CPU: ▼263.42ms] 50% from 4 tests

This is a short check of server-side resources used by Page Builder - AIO WP Builder: #1 Website Builder for Wordpress
Please take the time to fix the following items
  • RAM: The total memory usage must be kept under 10MB (currently 12.30MB on /wp-admin/admin.php?page=ve-fonts)
  • Extra RAM: Extra memory usage should kept under 5MB (currently 6.80MB on /wp-admin/admin.php?page=ve-fonts)
PageMemory (MB)CPU Time (ms)
Home /9.63 ▲6.1180.25 ▲29.30
Dashboard /wp-admin10.49 ▲7.0871.15 ▲36.35
Posts /wp-admin/edit.php10.72 ▲7.0872.46 ▲35.20
Add New Post /wp-admin/post-new.php13.94 ▲6.96124.67 ▼1,147.88
Media Library /wp-admin/upload.php10.36 ▲7.0653.63 ▲29.70
AIO WP Builder /wp-admin/admin.php?page=visual-editor-admin10.3655.32
Fonts /wp-admin/admin.php?page=ve-fonts12.3059.02

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 680 new files
Database: no new tables, 2 new options
New WordPress options
_ve_license
_ve_key

Browser metrics Passed 4 tests

Checking browser requirements for Page Builder - AIO WP Builder: #1 Website Builder for Wordpress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,190 ▲43218.37 ▲2.3812.57 ▲6.242.42 ▼0.31
Dashboard /wp-admin3,134 ▲2737.93 ▲1.65139.59 ▲6.19203.04 ▲40.47
Posts /wp-admin/edit.php2,965 ▲2715.06 ▲1.8377.26 ▲12.46164.85 ▲20.75
Add New Post /wp-admin/post-new.php1,673 ▲1219.51 ▲3.56409.03 ▼16.95183.66 ▲21.27
Media Library /wp-admin/upload.php1,742 ▲475.49 ▼0.02108.65 ▼45.20228.44 ▲28.71
AIO WP Builder /wp-admin/admin.php?page=visual-editor-admin1,2844.0869.09132.18
Fonts /wp-admin/admin.php?page=ve-fonts5,5464.5274.83145.49

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 2 options
    • _ve_key
    • _ve_license

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 91× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      Use of undefined constant VE_VERSION - assumed 'VE_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/all-in-one-wp-builder/config/ve-config.php on line 85
    • > PHP Fatal error
      Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/all-in-one-wp-builder/core/helpers/scssphp/src/Formatter/Crunched.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'VE_Manager_Abstract' not found in wp-content/plugins/all-in-one-wp-builder/core/classes/ve_shortcode.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Ve_Element' not found in wp-content/plugins/all-in-one-wp-builder/modules/VeCore/src/Elements/VeQuote.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Leafo\\ScssPhp\\Compiler' not found in wp-content/plugins/all-in-one-wp-builder/core/helpers/scssphp/classmap.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Ve_Element' not found in wp-content/plugins/all-in-one-wp-builder/modules/VeCore/src/Elements/VeWpArchives.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Ve_Element' not found in wp-content/plugins/all-in-one-wp-builder/modules/VeCore/src/Elements/Form/VeFormButton.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Ve_Element' not found in wp-content/plugins/all-in-one-wp-builder/modules/VeCore/src/Elements/VeWpRecentPosts.php:5
    • > PHP Warning
      Use of undefined constant VE_VERSION - assumed 'VE_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/all-in-one-wp-builder/config/ve-config.php on line 61
    • > PHP Warning
      Use of undefined constant VE_VERSION - assumed 'VE_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/all-in-one-wp-builder/config/ve-config.php on line 92

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 59 tag instead of maximum 10
  • Screenshots: Add an image for screenshot #1 (http://allinonewpbuilder.com/wp-content/uploads/2015/06/Screen-Shot-2015-06-03-at-10.54.22-AM.png)
The official readme.txt might help

all-in-one-wp-builder/visual-editor.php 92% from 13 tests

The entry point to "Page Builder - AIO WP Builder: #1 Website Builder for Wordpress" version 2.0.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("all-in-one-wp-builder.php" instead of "visual-editor.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin168,521 lines of code in 443 files:
LanguageFilesBlank linesComment linesLines of code
CSS692,6492,16179,936
JavaScript1269,9587,61447,514
PHP1202,1831,39215,245
JSON60013,768
LESS891,2971,5977,505
SVG5101,528
Sass1326241,352
XML800893
HTML210015512
Markdown51370268

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 106)
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity22.37
▷ Minimum class complexity1.00
▷ Maximum class complexity487.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity106.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes81
▷ Abstract classes11.23%
▷ Concrete classes8098.77%
▷ Final classes00.00%
Methods776
▷ Static methods40.52%
▷ Public methods57073.45%
▷ Protected methods20226.03%
▷ Private methods40.52%
Functions34
▷ Named functions3397.06%
▷ Anonymous functions12.94%
Constants21
▷ Global constants1361.90%
▷ Class constants838.10%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
82 PNG files occupy 0.21MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
view/libraries/context-menu/src/images/page_white_delete.png0.52KB0.51KB▼ 2.24%
view/images/close/close_button_17.png3.30KB2.03KB▼ 38.42%
modules/VeCore/view/lib/nivoslider/themes/light/bullets.png3.21KB0.54KB▼ 83.24%
view/libraries/jquery-ui/images/ui-icons_228ef1_256x240.png4.44KB4.17KB▼ 6.02%
view/css/editor/img/move.png0.25KB0.22KB▼ 11.54%