90% bestfreebie-elementor-icons

Code Review | Bestfreebie Elementor Icons

WordPress plugin Bestfreebie Elementor Icons scored90%from 54 tests.

About plugin

  • Plugin page: bestfreebie-eleme...
  • Plugin version: 1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.10-5.6
  • WordPress version: 6.3.1
  • First release: Apr 26, 2019
  • Latest release: Dec 16, 2020
  • Number of updates: 23
  • Update frequency: every 26.2 days
  • Top authors: bestfreebie (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

700+ active /10,417 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.89ms] Passed 4 tests

Server-side resources used by Bestfreebie Elementor Icons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.53 ▼6.49
Dashboard /wp-admin3.35 ▲0.0449.00 ▼8.29
Posts /wp-admin/edit.php3.40 ▲0.0448.78 ▼0.20
Add New Post /wp-admin/post-new.php5.93 ▲0.04101.15 ▲5.48
Media Library /wp-admin/upload.php3.27 ▲0.0437.38 ▼0.58

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bestfreebie Elementor Icons
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.20 ▼1.381.68 ▼0.1639.37 ▼0.98
Dashboard /wp-admin2,224 ▲334.86 ▲0.00109.45 ▼1.0842.61 ▼3.84
Posts /wp-admin/edit.php2,109 ▲202.03 ▼0.0141.16 ▲4.1537.27 ▲3.21
Add New Post /wp-admin/post-new.php1,541 ▲2723.40 ▲5.88666.49 ▼9.1152.95 ▼5.25
Media Library /wp-admin/upload.php1,409 ▲214.24 ▲0.01101.72 ▼10.3343.58 ▼6.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: google material icon, metrize icon, elementor, icon, custom icon elementor...

bestfreebie-elementor-icons/bestfreebie-elementor-icons.php 92% from 13 tests

"Bestfreebie Elementor Icons" version 1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 280 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected28,534 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
SVG50318,856
PHP3711695,168
CSS4701234,509
JSON1001

PHP code Passed 2 tests

Analyzing 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.34
Average class complexity13.50
▷ Minimum class complexity3.00
▷ Maximum class complexity24.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods20
▷ Static methods735.00%
▷ Public methods1995.00%
▷ Protected methods15.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
There are no PNG files in this plugin