83% full-site-builder-for-elementor

Code Review | StylePress for Elementor

WordPress plugin StylePress for Elementor scored 83% from 54 tests.

About plugin

  • Plugin page: full-site-builder...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.8
  • WordPress version: 6.3.1
  • First release: Mar 6, 2017
  • Latest release: Oct 7, 2018
  • Number of updates: 15
  • Update frequency: every 38.6 days
  • Top authors: dtbaker (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

1,000+ active / 71,570 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.33MB] [CPU: ▼4.31ms] Passed 4 tests

This is a short check of server-side resources used by StylePress for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3127.17 ▼12.98
Dashboard /wp-admin3.63 ▲0.3345.85 ▲1.29
Posts /wp-admin/edit.php3.75 ▲0.3945.05 ▼1.26
Add New Post /wp-admin/post-new.php6.21 ▲0.3385.54 ▼4.29
Media Library /wp-admin/upload.php3.56 ▲0.3338.50 ▲6.29

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 174 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by StylePress for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,470 ▼26514.48 ▼0.110.51 ▼1.1118.36 ▼31.46
Dashboard /wp-admin2,208 ▲205.85 ▼0.07102.00 ▼6.8340.85 ▼0.85
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0334.54 ▼9.1834.60 ▼3.05
Add New Post /wp-admin/post-new.php1,540 ▲723.18 ▲0.24646.53 ▼24.0163.91 ▲7.31
Media Library /wp-admin/upload.php1,393 ▲24.24 ▼0.0098.23 ▼4.6545.51 ▲3.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/full-site-builder-for-elementor/metaboxes/export.php on line 4
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/full-site-builder-for-elementor/metaboxes/post-meta-box.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/full-site-builder-for-elementor/admin/_header.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_url() in wp-content/plugins/full-site-builder-for-elementor/metaboxes/export.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/full-site-builder-for-elementor/extensions/stylepress-loop/widget.stylepress-loop.php:17
    • > PHP Notice
      Trying to get property 'post_parent' of non-object in wp-content/plugins/full-site-builder-for-elementor/metaboxes/export.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/full-site-builder-for-elementor/themes/oceanwp.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/full-site-builder-for-elementor/extensions/wp-menu/walker-display.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/full-site-builder-for-elementor/extensions/wp-menu/walker-edit-page.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: A description for screenshot #4 is required in full-site-builder-for-elementor/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
You can look at the official readme.txt

full-site-builder-for-elementor/full-site-builder-for-elementor.php 92% from 13 tests

This is the main PHP file of "StylePress for Elementor" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin22,216 lines of code in 149 files:
LanguageFilesBlank linesComment linesLines of code
PHP942,1402,1159,110
CSS187151035,598
LESS16491823,270
SVG1002,672
JavaScript153132281,245
JSON400316
Markdown1405

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity30.86
▷ Minimum class complexity1.00
▷ Maximum class complexity385.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes28
▷ Abstract classes00.00%
▷ Concrete classes28100.00%
▷ Final classes00.00%
Methods272
▷ Static methods62.21%
▷ Public methods21077.21%
▷ Protected methods4918.01%
▷ Private methods134.78%
Functions61
▷ Named functions1422.95%
▷ Anonymous functions4777.05%
Constants12
▷ Global constants1191.67%
▷ Class constants18.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo-stylepress-sml.png5.92KB3.30KB▼ 44.29%
assets/img/widget-logo.png6.21KB3.09KB▼ 50.19%
assets/img/icon.png1.11KB0.41KB▼ 62.93%
extensions/modal-popup/images/close.png1.07KB0.19KB▼ 82.64%
assets/img/inner-outer-graphic-light.png24.37KB9.65KB▼ 60.40%