83% elastik-page-builder

Code Review | Elastik Page Builder

WordPress plugin Elastik Page Builder scored 83% from 54 tests.

About plugin

  • Plugin page: elastik-page-builder
  • Plugin version: 0.27.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9
  • WordPress version: 6.3.1
  • First release: Aug 11, 2018
  • Latest release: Nov 21, 2018
  • Number of updates: 28
  • Update frequency: every 3.6 days
  • Top authors: azexo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,020 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▲0.02ms] Passed 4 tests

A check of server-side resources used by Elastik Page Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.86 ▼7.97
Dashboard /wp-admin3.33 ▲0.0256.73 ▲0.80
Posts /wp-admin/edit.php3.38 ▲0.0256.03 ▲1.75
Add New Post /wp-admin/post-new.php5.91 ▲0.02147.90 ▲40.49
Media Library /wp-admin/upload.php3.25 ▲0.0245.11 ▲5.49

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 656 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
azh-content-settings
widget_recent-comments
azh-library
azh-all-settings
azh-get-content-scripts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Elastik Page Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲10713.68 ▼0.6810.19 ▲8.2347.70 ▲2.73
Dashboard /wp-admin2,223 ▲145.86 ▲0.02102.73 ▼4.0042.23 ▲0.69
Posts /wp-admin/edit.php2,105 ▲131.98 ▼0.0740.22 ▼0.2732.46 ▼4.42
Add New Post /wp-admin/post-new.php1,388 ▼14517.65 ▼5.53726.71 ▲31.7442.05 ▼24.73
Media Library /wp-admin/upload.php1,396 ▲114.18 ▼0.0599.53 ▼8.3144.18 ▲0.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 10 options in the database
    • widget_recent-posts
    • azh-content-settings
    • db_upgraded
    • azh-all-settings
    • can_compress_scripts
    • azh-library
    • azh-get-content-scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 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 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/elastik-page-builder/azh_elastic.php:13

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, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

elastik-page-builder/azh_elastic.php 85% from 13 tests

The entry point to "Elastik Page Builder" version 0.27.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("elastik-page-builder.php" instead of "azh_elastic.php")
  • 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 plugin78,858 lines of code in 287 files:
LanguageFilesBlank linesComment linesLines of code
CSS7645,37425,369
HTML2481019,256
JavaScript173,3814,19515,724
LESS845024914,034
SVG3013,038
PHP110033999
JSON200397
PO File1121941

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions43
▷ Named functions4195.35%
▷ Anonymous functions24.65%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
164 PNG files occupy 1.91MB with 0.72MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
azh/elastic/posts-thumbnail-excerpt-categories.png1.93KB1.07KB▼ 44.41%
azh/elastic/button.png0.61KB0.24KB▼ 59.84%
azh/elastic/products.png3.22KB1.53KB▼ 52.64%
azh/images/elastic/customers-2.png118.42KB126.36KB0.00%
azh/images/elastic/pricing-1.png5.04KB3.45KB▼ 31.59%