84% icons-factory

Code Review | Icons Factory

WordPress plugin Icons Factory scored 84% from 54 tests.

About plugin

  • Plugin page: icons-factory
  • Plugin version: 1.6.12
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.0
  • WordPress version: 6.3.1
  • First release: Dec 12, 2018
  • Latest release: Jan 4, 2019
  • Number of updates: 43
  • Update frequency: every 0.6 days
  • Top authors: artkrylov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 1,673 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.27MB] [CPU: ▲2.06ms] Passed 4 tests

An overview of server-side resources used by Icons Factory
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2644.29 ▼1.99
Dashboard /wp-admin3.57 ▲0.2753.06 ▲5.10
Posts /wp-admin/edit.php3.69 ▲0.3350.39 ▲3.06
Add New Post /wp-admin/post-new.php6.15 ▲0.2792.75 ▲2.82
Media Library /wp-admin/upload.php3.49 ▲0.2741.14 ▲4.34
Workroom /wp-admin/admin.php?page=icons_factory4.7342.93
Feedback ✌️ Updates /wp-admin/admin.php?page=icons_factory_supportroom3.4930.67
Presets /wp-admin/admin.php?page=icons_factory_storeroom4.8047.25
Uploads /wp-admin/admin.php?page=icons_factory_uploadroom3.6136.47

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Icons Factory
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲12914.81 ▲0.451.96 ▲0.2043.11 ▼2.46
Dashboard /wp-admin2,270 ▲795.01 ▼0.89112.52 ▲9.9245.77 ▲4.93
Posts /wp-admin/edit.php2,149 ▲812.12 ▲0.1234.64 ▼1.9537.18 ▲3.66
Add New Post /wp-admin/post-new.php1,554 ▲3223.39 ▼0.06692.30 ▲41.6437.89 ▼14.16
Media Library /wp-admin/upload.php1,451 ▲634.32 ▲0.0798.36 ▼17.7247.45 ▲0.78
Workroom /wp-admin/admin.php?page=icons_factory7,9552.30239.17103.46
Feedback ✌️ Updates /wp-admin/admin.php?page=icons_factory_supportroom1,0261.7927.9150.94
Presets /wp-admin/admin.php?page=icons_factory_storeroom4,2631.9530.1151.06
Uploads /wp-admin/admin.php?page=icons_factory_uploadroom1,0841.8429.4132.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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
Everything seems fine, however this is by no means 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
Please fix the following items
  • 448× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/icons-factory/library/default/ic_money_offer-new.php
    • > /wp-content/plugins/icons-factory/library/03_6r24u3gpth40/ic_people-03.php
    • > /wp-content/plugins/icons-factory/library/default/ic_letters_V.php
    • > /wp-content/plugins/icons-factory/library/default/ic_time_cake-one.php
    • > /wp-content/plugins/icons-factory/library/03_6r24u3gpth40/ic_people-10.php
    • > /wp-content/plugins/icons-factory/library/03_6r24u3gpth40/ic_people-52.php
    • > /wp-content/plugins/icons-factory/library/03_6r24u3gpth40/ic_people-54.php
    • > /wp-content/plugins/icons-factory/library/default/ic_money_package-sale.php
    • > /wp-content/plugins/icons-factory/library/03_6r24u3gpth40/ic_people-01.php
    • > /wp-content/plugins/icons-factory/library/default/ic_other_cylinder.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

icons-factory/icons-factory.php Passed 13 tests

"Icons Factory" version 1.6.12's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
97 characters long description:
Free design editor to create, stylize and animate icons and other website graphics to your taste.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected36,829 lines of code in 524 files:
LanguageFilesBlank linesComment linesLines of code
PHP4626,7661,49631,621
JavaScript187433022,382
Sass2198461,357
CSS592121,304
SVG37240165

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity59.50
▷ Minimum class complexity3.00
▷ Maximum class complexity242.00
Average method complexity6.42
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods108
▷ Static methods00.00%
▷ Public methods108100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
485 PNG files occupy 7.15MB with 3.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
library/02_41pkfcqtg5b0/ic_food-drink-25.png10.14KB2.54KB▼ 74.99%
library/02_41pkfcqtg5b0/ic_weather-06.png11.71KB3.61KB▼ 69.16%
presets/BASE@ALR.png23.54KB7.74KB▼ 67.10%
library/default/ic_letters_T.png1.77KB1.82KB0.00%
library/default/ic_characters_anonymous-1.png5.67KB6.19KB0.00%