78% cresta-addons-for-elementor

Code Review | Cresta Addons for Elementor

WordPress plugin Cresta Addons for Elementor scored78%from 54 tests.

About plugin

  • Plugin page: cresta-addons-for...
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.2
  • WordPress version: 6.3.1
  • First release: Nov 17, 2020
  • Latest release: Apr 6, 2023
  • Number of updates: 37
  • Update frequency: every 23.5 days
  • Top authors: CrestaProject (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,255 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.10ms] Passed 4 tests

Server-side resources used by Cresta Addons for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.95 ▼1.64
Dashboard /wp-admin3.32 ▼0.0348.98 ▼12.90
Posts /wp-admin/edit.php3.37 ▲0.0147.93 ▲0.67
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.01 ▼7.11
Media Library /wp-admin/upload.php3.24 ▲0.0135.62 ▼2.74

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 77 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
cresta_addons_for_elementor
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cresta Addons for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲5114.31 ▲0.371.73 ▲0.0241.11 ▲2.38
Dashboard /wp-admin2,203 ▲235.50 ▼0.1381.34 ▼7.0939.53 ▼7.16
Posts /wp-admin/edit.php2,108 ▲82.14 ▲0.1233.72 ▼7.3331.81 ▼7.71
Add New Post /wp-admin/post-new.php1,536 ▲423.03 ▼0.21673.01 ▼32.7768.98 ▼5.91
Media Library /wp-admin/upload.php1,408 ▲114.24 ▲0.05128.06 ▲21.7854.08 ▲9.55

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/cresta-addons-for-elementor/uninstall.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cresta-addons-for-elementor/panel/plugin-options-page.php:304
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cresta-addons-for-elementor/inc/config.php:439

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)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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 require attention:
  • Screenshots: Add images for these screenshots: #1 (Cresta Addons Settings Page), #2 (Cresta Addons Posts Box Widget), #3 (Cresta Addons News Ticker Widget), #4 (Cresta Addons Double Button Widget), #5 (Cresta Addons Pricing Table Widget (PRO Version))
Please take inspiration from this readme.txt

cresta-addons-for-elementor/cresta-addons-for-elementor.php Passed 13 tests

Analyzing the main PHP file in "Cresta Addons for Elementor" version 1.0.9
43 characters long description:
Dozens of additional widgets for Elementor!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin9,825 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
PHP206143046,283
JavaScript166571,3092,743
CSS251512799

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity10.56
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes212.50%
Methods132
▷ Static methods32.27%
▷ Public methods9773.48%
▷ Protected methods3526.52%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 compressed PNG files occupy 0.26MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png12.77KB13.30KB0.00%
screenshot-2.png185.95KB203.40KB0.00%
screenshot-5.png21.44KB21.54KB0.00%
screenshot-1.png32.32KB33.38KB0.00%
panel/assets/img/cafe-icon.png0.43KB0.44KB0.00%