78% aqua-page-builder

Code Review | Aqua Page Builder

WordPress plugin Aqua Page Builder scored78%from 54 tests.

About plugin

  • Plugin page: aqua-page-builder
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.3.1
  • WordPress version: 6.3.1
  • First release: Apr 20, 2013
  • Latest release: Nov 29, 2015
  • Number of updates: 21
  • Update frequency: every 45.4 days
  • Top authors: syamilmj (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

5,000+ active /191,362 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.08MB] [CPU: ▼13.23ms] Passed 4 tests

Analyzing server-side resources used by Aqua Page Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3347.76 ▼0.19
Dashboard /wp-admin3.49 ▲0.1437.73 ▼15.52
Posts /wp-admin/edit.php3.55 ▲0.1540.18 ▼15.41
Add New Post /wp-admin/post-new.php5.73 ▼0.1975.62 ▼20.93
Media Library /wp-admin/upload.php3.49 ▲0.2238.56 ▼1.07
Page Builder /wp-admin/themes.php?page=aqua-page-builder3.4936.43

Server storage [IO: ▲0.13MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Aqua Page Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲12213.88 ▼0.479.06 ▲7.2245.54 ▼0.22
Dashboard /wp-admin2,196 ▲165.63 ▲0.0486.28 ▼9.2039.07 ▼4.46
Posts /wp-admin/edit.php2,101 ▲11.95 ▼0.0335.50 ▼0.9936.39 ▲2.88
Add New Post /wp-admin/post-new.php1,541 ▲1523.28 ▲0.41684.28 ▲36.2467.75 ▲9.63
Media Library /wp-admin/upload.php1,404 ▲14.11 ▼0.16101.73 ▲1.7145.58 ▼0.15
Page Builder /wp-admin/themes.php?page=aqua-page-builder2,1107.11143.8439.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/themes.php?page=aqua-page-builder
    • > User deprecated in wp-includes/functions.php+5828
    Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
    • > GET request to /wp-admin/themes.php?page=aqua-page-builder
    • > User deprecated in wp-includes/functions.php+5828
    Hook media_buttons_context is deprecated since version 3.5.0! Use media_buttons instead.

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
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'AQ_Block' not found in wp-content/plugins/aqua-page-builder/blocks/aq-column-block.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'AQ_Block' not found in wp-content/plugins/aqua-page-builder/blocks/aq-clear-block.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'AQ_Block' not found in wp-content/plugins/aqua-page-builder/blocks/aq-alert-block.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'AQ_Block' not found in wp-content/plugins/aqua-page-builder/blocks/aq-text-block.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'AQ_Block' not found in wp-content/plugins/aqua-page-builder/blocks/aq-tabs-block.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'AQ_Block' not found in wp-content/plugins/aqua-page-builder/blocks/aq-editor-block.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'AQ_Block' not found in wp-content/plugins/aqua-page-builder/blocks/aq-widgets-block.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/aqua-page-builder/view/view-builder-page.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/aqua-page-builder/aqua-page-builder.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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: aquagraphite, page builder, syamilmj

aqua-page-builder/aqua-page-builder.php 92% from 13 tests

Analyzing the main PHP file in "Aqua Page Builder" version 1.1.5
Please take the time to fix the following:
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,971 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP155524461,635
CSS37787829
JavaScript311997398
PO File14452109

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity13.20
▷ Minimum class complexity1.00
▷ Maximum class complexity67.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods69
▷ Static methods00.00%
▷ Public methods69100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/dropdown-arrows.png1.79KB1.13KB▼ 36.59%
assets/images/drop-bg.png0.91KB0.15KB▼ 83.48%
(invalid) assets/images/aqua-media-button.png1.24KB0.00KB▼ 100.00%
assets/images/tab-arrows.png1.12KB0.29KB▼ 74.24%
assets/images/arrows-dark.png0.27KB0.24KB▼ 13.57%