89% icecream-elementor-addon

Code Review | IceCream Elementor Addon

WordPress plugin IceCream Elementor Addon scored89%from 54 tests.

About plugin

  • Plugin page: icecream-elemento...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.0
  • WordPress version: 6.3.1
  • First release: Apr 23, 2022
  • Latest release: Apr 26, 2023
  • Number of updates: 7
  • Update frequency: every 52.7 days
  • Top authors: rezamas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /426 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Server-side resources used by IceCream Elementor Addon
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.35 ▼0.77
Dashboard /wp-admin3.32 ▼0.0351.68 ▼16.90
Posts /wp-admin/edit.php3.37 ▲0.0151.28 ▼6.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.31 ▼28.95
Media Library /wp-admin/upload.php3.24 ▲0.0134.66 ▼5.05
IceCream Elementor Addon /wp-admin/tools.php?page=icecreameaddon3.2032.06

Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Please fix the following
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/icecream-elementor-addon/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by IceCream Elementor Addon
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8314.40 ▲0.031.94 ▼0.1441.95 ▼1.61
Dashboard /wp-admin2,225 ▲284.84 ▼0.03109.31 ▲5.1741.87 ▼4.33
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.0442.83 ▲2.5636.97 ▼2.71
Add New Post /wp-admin/post-new.php1,543 ▼218.24 ▼4.83638.76 ▼0.8655.67 ▲2.51
Media Library /wp-admin/upload.php1,407 ▲74.25 ▲0.1199.28 ▼22.9641.57 ▼8.06
IceCream Elementor Addon /wp-admin/tools.php?page=icecreameaddon8332.0225.1237.69

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: There are too many tags (20 tag instead of maximum 10)
You can look at the official readme.txt

icecream-elementor-addon/icecreameaddon.php 85% from 13 tests

"IceCream Elementor Addon" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("icecream-elementor-addon.php" instead of "icecreameaddon.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
There were no executable files found in this plugin4,466 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP15449123,966
CSS11490382
PO File14757110
JavaScript1008

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity9.20
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods96
▷ Static methods00.00%
▷ Public methods7173.96%
▷ Protected methods2526.04%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png31.01KB10.62KB▼ 65.75%
assets/icon-128x128.png16.88KB5.68KB▼ 66.36%