10% octagon-elements-lite-for-elementor

Code Review | Octagon Elements for Elementor

WordPress plugin Octagon Elements for Elementor scored 10% from 54 tests.

About plugin

  • Plugin page: octagon-elements-...
  • Plugin version: 1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: May 23, 2020
  • Latest release: May 30, 2020
  • Number of updates: 7
  • Update frequency: every 1.1 days
  • Top authors: octagonwebstudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 709 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/octagon-elements-lite-for-elementor/core/vendor/wp-less/lessc.inc.php+749
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.00MB] [CPU: ▼50.86ms] Passed 4 tests

An overview of server-side resources used by Octagon Elements for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.98 ▼0.486.45 ▼34.24
Dashboard /wp-admin3.00 ▼0.308.14 ▼39.48
Posts /wp-admin/edit.php3.01 ▼0.3510.76 ▼36.58
Add New Post /wp-admin/post-new.php3.00 ▼2.888.65 ▼93.15
Media Library /wp-admin/upload.php3.01 ▼0.2213.45 ▼20.91
Welcome /wp-admin/admin.php?page=octagon-intro3.017.04
Settings /wp-admin/admin.php?page=octagon-settings3.018.06
Modules /wp-admin/admin.php?page=octagon-modules3.018.01
Icon Manager /wp-admin/admin.php?page=octagon-icon-manager3.019.39
My Templates /wp-admin/edit.php?post_type=octagon_templates3.0110.37
Sidebar /wp-admin/admin.php?page=octagon-sidebar3.018.82
Status /wp-admin/admin.php?page=octagon-status3.0111.62

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 252 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
widget_recent-comments
octagon_icon_set
can_compress_scripts
oee_modules
octagon-elements-has-cached
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Octagon Elements for Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,242 ▲50715.73 ▲1.367.93 ▲6.2551.79 ▲7.26
Dashboard /wp-admin2,509 ▲3216.91 ▲2.03128.87 ▲22.6639.13 ▲0.22
Posts /wp-admin/edit.php2,453 ▲3643.56 ▲1.5454.03 ▲20.3792.89 ▲61.61
Add New Post /wp-admin/post-new.php3,250 ▲1,7308.27 ▼15.12171.40 ▼447.1969.05 ▲6.29
Media Library /wp-admin/upload.php1,559 ▲1714.64 ▲0.4486.80 ▼16.4444.71 ▼1.64
Welcome /wp-admin/admin.php?page=octagon-intro1,2303.6445.07103.16
Settings /wp-admin/admin.php?page=octagon-settings1,4743.6063.6574.33
Modules /wp-admin/admin.php?page=octagon-modules1,7353.6249.66103.34
Icon Manager /wp-admin/admin.php?page=octagon-icon-manager1,2523.5443.0379.93
My Templates /wp-admin/edit.php?post_type=octagon_templates1,5083.6657.5230.10
Sidebar /wp-admin/admin.php?page=octagon-sidebar1,2333.5246.2883.60
Status /wp-admin/admin.php?page=octagon-status1,3393.4647.3484.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/octagon-elements-lite-for-elementor/core/vendor/wp-less/lessc.inc.php+749
    Array and string offset access syntax with curly braces is deprecated
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_recent-posts
    • octagon_icon_set
    • oee_modules
    • widget_recent-comments
    • theysaidso_admin_options
    • octagon-elements-has-cached
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 32 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=octagon-status
    • > Deprecated in wp-content/plugins/octagon-elements-lite-for-elementor/core/vendor/wp-less/lessc.inc.php+2681
    Array and string offset access syntax with curly braces is deprecated

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=octagon-status
    • > Network (severe)
    wp-content/plugins/octagon-elements-lite-for-elementor/core/assets/js/icon-manager.js?ver=1.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=octagon-settings
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
    • > GET request to /wp-admin/admin.php?page=octagon-settings
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
    • > GET request to /wp-admin/admin.php?page=octagon-settings
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.clear is deprecated since version 5.5.0! Use wp.i18n instead.
    • > GET request to /wp-admin/admin.php?page=octagon-settings
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.clearAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (**Toggle Modules.** You can enable/disable the elements to improve performance.), #2 (**Icon Manager.** You can choose what are the icon fonts going to choose and import the custom icons zip archives.), #3 (**Mega Menu.** Easy way to create a mega menu up to 6 columns.), #4 (**Elements.** 30+ elements and counting.), #5 (**Custom Sidebar.** You can register custom widget area.), #6 (**System Status.** Check the site health.)
You can look at the official readme.txt

octagon-elements-lite-for-elementor/octagon-elements-lite-for-elementor.php Passed 13 tests

The principal PHP file in "Octagon Elements for Elementor" v. 1.4 is loaded by WordPress automatically on each request
55 characters long description:
Tons of unique shortcodes elements with toggle feature.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin27,214 lines of code in 169 files:
LanguageFilesBlank linesComment linesLines of code
PHP995,4156,30219,770
LESS296713192,886
JavaScript209215671,966
CSS123221291,866
Markdown31160425
SVG640301

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity31.52
▷ Minimum class complexity1.00
▷ Maximum class complexity379.00
Average method complexity3.92
▷ Minimum method complexity1.00
▷ Maximum method complexity80.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes58
▷ Abstract classes11.72%
▷ Concrete classes5798.28%
▷ Final classes00.00%
Methods606
▷ Static methods274.46%
▷ Public methods34857.43%
▷ Protected methods20934.49%
▷ Private methods498.09%
Functions59
▷ Named functions5796.61%
▷ Anonymous functions23.39%
Constants14
▷ Global constants1285.71%
▷ Class constants214.29%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
66 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
core/assets/image/kc-icon-content-type-slider.png1.15KB0.74KB▼ 35.93%
core/assets/image/kc-icon-product-box-slider.png1.31KB0.81KB▼ 38.18%
assets/image/kc-icon-testimonial-slider.png1.65KB1.07KB▼ 35.19%
core/assets/image/kc-icon-products-grid.png1.36KB0.79KB▼ 41.86%
assets/image/kc-icon-blog-grid.png1.23KB0.72KB▼ 41.67%