90% easy-icon-grid

Code Review | Easy Icon Grid

WordPress plugin Easy Icon Grid scored90%from 54 tests.

About plugin

  • Plugin page: easy-icon-grid
  • Plugin version: 1.0.11
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Apr 24, 2020
  • Latest release: Oct 11, 2021
  • Number of updates: 19
  • Update frequency: every 28.2 days
  • Top authors: websitesbuiltforyou (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,013 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
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.70ms] Passed 4 tests

This is a short check of server-side resources used by Easy Icon Grid
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1441.43 ▼2.32
Dashboard /wp-admin3.42 ▲0.1147.10 ▼1.06
Posts /wp-admin/edit.php3.53 ▲0.1744.41 ▼1.43
Add New Post /wp-admin/post-new.php6.04 ▲0.1683.75 ▼8.92
Media Library /wp-admin/upload.php3.34 ▲0.1132.86 ▼2.12
Easy Icon Grid /wp-admin/options-general.php?page=easy-icon-grid3.3529.99

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options
easy_icon_grid
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_easy_icon_grid
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Icon Grid
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.42 ▼0.231.91 ▼0.0543.40 ▼6.03
Dashboard /wp-admin2,199 ▲295.57 ▲0.02102.57 ▲0.7742.41 ▲3.63
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0734.47 ▼1.6034.62 ▲1.33
Add New Post /wp-admin/post-new.php6,206 ▲4,68019.22 ▼3.75926.42 ▲266.2958.52 ▲3.82
Media Library /wp-admin/upload.php1,401 ▲74.19 ▼0.0095.88 ▼1.9343.99 ▲1.46
Easy Icon Grid /wp-admin/options-general.php?page=easy-icon-grid8542.0022.7628.04

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_easy_icon_grid
    • easy_icon_grid
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Congratulations! This plugin passed the SRP test

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: list, grid, font-awesome, icon, easy icon grid...

easy-icon-grid/easy-icon-grid.php Passed 13 tests

"Easy Icon Grid" version 1.0.11's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
76 characters long description:
Easily display grids of icons using shortcodes, widgets and Gutenberg blocks

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
Everything looks great! No dangerous files found in this plugin1,177 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP16161435856
JavaScript41443216
Sass410103
CSS2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity6.36
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods49
▷ Static methods1632.65%
▷ Public methods4693.88%
▷ Protected methods00.00%
▷ Private methods36.12%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants888.89%
▷ Class constants111.11%
▷ Public constants1100.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