83% elastik-addons-for-elementor

Code Review | Elastik Addons for Elementor

WordPress plugin Elastik Addons for Elementor 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 12, 2018
  • Latest release: Sep 30, 2018
  • Number of updates: 12
  • Update frequency: every 4.1 days
  • Top authors: azexo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,540 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by Elastik Addons for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1840.81 ▲3.09
Dashboard /wp-admin3.47 ▲0.1745.81 ▼5.42
Posts /wp-admin/edit.php3.58 ▲0.2349.35 ▲3.92
Add New Post /wp-admin/post-new.php6.05 ▲0.1791.48 ▼6.87
Media Library /wp-admin/upload.php3.39 ▲0.1739.84 ▲4.12

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 680 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Elastik Addons for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲16113.73 ▼1.029.66 ▲7.6039.02 ▼8.44
Dashboard /wp-admin2,220 ▲355.80 ▲0.9695.40 ▼11.0143.05 ▲0.59
Posts /wp-admin/edit.php2,105 ▲162.05 ▲0.0239.83 ▲2.7636.42 ▲1.89
Add New Post /wp-admin/post-new.php1,552 ▲1618.31 ▼4.87623.51 ▼44.1964.86 ▲15.25
Media Library /wp-admin/upload.php1,405 ▲144.25 ▲0.09106.16 ▲4.8048.35 ▲1.92

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/elastik-addons-for-elementor/azh_elastic.php:13

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 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
2 plugin tags: elementor, elementor addon

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

"Elastik Addons for Elementor" version 0.27's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("elastik-addons-for-elementor.php" instead of "azh_elastic.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable 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

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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

PNG files should be compressed to save space and minimize bandwidth usage
164 PNG files occupy 1.91MB with 0.99MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
azh/elastic/teammate-2.png0.90KB0.48KB▼ 46.54%
azh/elastic/testimonial.png1.02KB0.58KB▼ 43.46%
azh/elastic/page-title.png0.37KB0.11KB▼ 70.29%
azh/images/elastic/shape.png42.88KB20.89KB▼ 51.28%
azh/images/elastic/pricing-2.png7.51KB3.95KB▼ 47.33%