83% elastik-addons-for-wpbakery

Code Review | Elastik Addons for WPBakery

WordPress plugin Elastik Addons for WPBakery scored83%from 54 tests.

About plugin

  • Plugin page: elastik-addons-fo...
  • Plugin version: 0.27
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9
  • WordPress version: 6.3.1
  • First release: Aug 15, 2018
  • Latest release: Sep 30, 2018
  • Number of updates: 7
  • Update frequency: every 6.6 days
  • Top authors: azexo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /995 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Elastik Addons for WPBakery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1841.62 ▼1.44
Dashboard /wp-admin3.47 ▲0.1755.85 ▲6.24
Posts /wp-admin/edit.php3.58 ▲0.2346.09 ▼1.14
Add New Post /wp-admin/post-new.php6.05 ▲0.1783.61 ▼1.12
Media Library /wp-admin/upload.php3.39 ▲0.1635.76 ▲4.57

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 680 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Elastik Addons for WPBakery
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲18613.69 ▼0.6610.34 ▲8.5642.13 ▼5.25
Dashboard /wp-admin2,223 ▲354.84 ▼1.03110.21 ▲2.3549.79 ▲5.03
Posts /wp-admin/edit.php2,105 ▲132.05 ▲0.0234.69 ▼1.4939.10 ▲3.37
Add New Post /wp-admin/post-new.php1,524 ▼517.57 ▼0.74661.41 ▲49.5265.02 ▲14.65
Media Library /wp-admin/upload.php1,402 ▲114.23 ▲0.0699.80 ▲0.2942.09 ▼2.20

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/elastik-addons-for-wpbakery/azh_elastic.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: visual composer, wpbakery, wpbakery addon, vc

elastik-addons-for-wpbakery/azh_elastic.php 85% from 13 tests

The entry point to "Elastik Addons for WPBakery" version 0.27 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("elastik-addons-for-wpbakery.php" instead of "azh_elastic.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 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 plugin221,128 lines of code in 312 files:
LanguageFilesBlank linesComment linesLines of code
CSS20675,864109,993
LESS202,00566971,828
HTML2481019,246
JavaScript173,3834,19415,654
SVG3013,038
PHP19332931
JSON200397
PO File1121941

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions39
▷ Named functions3794.87%
▷ Anonymous functions25.13%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
164 PNG files occupy 1.91MB with 0.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
azh/images/elastic/macbook-air.png50.80KB53.40KB0.00%
azh/elastic/contact-form.png0.41KB0.15KB▼ 63.27%
azh/images/elastic/chronometer.png1.84KB1.57KB▼ 14.66%
azh/elastic/feature.png0.87KB0.47KB▼ 45.32%
azh/elastic/pricing-plan-7.png1.08KB0.44KB▼ 59.11%