84% icon-list

Code Review | Icon List

WordPress plugin Icon List scored84%from 54 tests.

About plugin

  • Plugin page: icon-list
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8.1
  • WordPress version: 6.3.1
  • First release: Dec 30, 2013
  • Latest release: Sep 10, 2017
  • Number of updates: 28
  • Update frequency: every 48.2 days
  • Top authors: designorbital (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /27,882 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.42ms] Passed 4 tests

Server-side resources used by Icon List
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.64 ▼2.74
Dashboard /wp-admin3.34 ▲0.0446.51 ▼1.77
Posts /wp-admin/edit.php3.39 ▲0.0346.11 ▲2.51
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.37 ▼4.80
Media Library /wp-admin/upload.php3.26 ▲0.0333.85 ▼0.35
Icon List Options /wp-admin/options-general.php?page=iconlist-options3.2829.61

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 8 new options
New WordPress options
widget_widget-iconlist-kamn
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
kamn_iconlist_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Icon List: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6214.51 ▲0.281.72 ▼0.0144.85 ▼0.50
Dashboard /wp-admin2,213 ▲255.84 ▼0.0195.67 ▼6.2836.16 ▼7.96
Posts /wp-admin/edit.php2,090 ▲12.04 ▲0.0438.17 ▲1.7435.60 ▲2.49
Add New Post /wp-admin/post-new.php1,544 ▲918.45 ▼5.03629.61 ▼41.5756.35 ▼4.38
Media Library /wp-admin/upload.php1,392 ▲44.24 ▲0.02100.95 ▲6.9741.19 ▼0.91
Icon List Options /wp-admin/options-general.php?page=iconlist-options1,0142.0825.9927.15

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
  • This plugin does not fully uninstall, leaving 8 options in the database
    • db_upgraded
    • widget_recent-posts
    • kamn_iconlist_options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_widget-iconlist-kamn
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/icon-list/lib/admin/page.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/icon-list/lib/widget-iconlist.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/icon-list/lib/modules.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/icon-list/lib/utils.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/icon-list/lib/init.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/icon-list/icon-list.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/icon-list/lib/admin/admin.php:16

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)
There were no browser issues found

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

icon-list/icon-list.php 92% from 13 tests

The entry point to "Icon List" version 0.6 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected5,832 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS38262,435
PHP8200163481
JavaScript25340161
PO File1283082
HTML1002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity11.33
▷ Minimum class complexity10.00
▷ Maximum class complexity13.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin