84% all-icon-block

Code Review | All Icon Block

WordPress plugin All Icon Block scored84%from 54 tests.

About plugin

  • Plugin page: all-icon-block
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.0
  • WordPress version: 6.3.1
  • First release: Oct 4, 2022
  • Latest release: Oct 4, 2022
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: ikamal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /900 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.02MB] [CPU: ▼5.37ms] Passed 4 tests

A check of server-side resources used by All Icon Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.61 ▼2.17
Dashboard /wp-admin3.33 ▲0.0343.70 ▼7.85
Posts /wp-admin/edit.php3.38 ▲0.0247.73 ▼0.46
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.08 ▼10.98
Media Library /wp-admin/upload.php3.25 ▲0.0235.07 ▲3.23

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for All Icon Block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.14 ▼1.074.63 ▲2.9840.21 ▼2.60
Dashboard /wp-admin2,209 ▲605.84 ▲0.28106.17 ▲9.0243.04 ▼0.32
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0135.41 ▼6.2135.00 ▼2.51
Add New Post /wp-admin/post-new.php6,362 ▲4,83928.50 ▲5.33925.40 ▲271.5156.49 ▼5.77
Media Library /wp-admin/upload.php1,391 ▲34.26 ▼0.0597.72 ▲3.0541.34 ▼3.12

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-icon-block/all-icon-block.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (The Icon Block includes the WordPress icon library allowing you to quickly and easily insert 270+ graphics.), #2 (Create your own custom icons by simply copy/pasting the SVG code. Then modify the icon to suit your needs.), #3 (The Icon Block comes with numerous icon controls such as color, rotation, alignment, padding, and border radius.), #4 (Whether you need a big icon, or a small one, the Icon Block adapts to your layout. Give it a try with the Row block in Gutenberg!), #5 (Use the "quick inserter", to quickly pick the WordPress icon you need.), #6 (The WordPress icon library modal is complete with categories, search, and preview size functionality.), #7 (Custom icons are added via their own insertion modal with a large textarea and the ability to preview the SVG code.), #8 (You are not limited to traditional icons. Any SVG-based graphic will work as well. The block will respect any hard coded color/fill values in the provided SVG.)
Please take inspiration from this readme.txt

all-icon-block/all-icon-block.php Passed 13 tests

"All Icon Block" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
86 characters long description:
A simple little block that allows you add any kind of icon or graphic to your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin39,553 lines of code in 72 files:
LanguageFilesBlank linesComment linesLines of code
JSON40035,133
JavaScript592353313,840
Sass210517510
Markdown124059
PHP42209
CSS2002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin