87% ultimate-icon-shortcodes

Code Review | Ultimate Icon Shortcodes - LITE

WordPress plugin Ultimate Icon Shortcodes - LITE scored 87% from 54 tests.

About plugin

  • Plugin page: ultimate-icon-sho...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3-3.7
  • WordPress version: 5.8.1
  • First release: Oct 21, 2013
  • Latest release: Oct 22, 2013
  • Number of updates: 4
  • Update frequency: every 7.8 days
  • Top authors: ShaneJones (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,019 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼146.59ms] Passed 4 tests

An overview of server-side resources used by Ultimate Icon Shortcodes - LITE
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1341.65 ▲8.78
Dashboard /wp-admin3.08 ▲0.0250.19 ▼11.32
Posts /wp-admin/edit.php3.13 ▲0.0254.99 ▲1.24
Add New Post /wp-admin/post-new.php5.44 ▲0.00102.32 ▼570.24
Media Library /wp-admin/upload.php3.02 ▲0.0236.74 ▼6.04

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Ultimate Icon Shortcodes - LITE
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,689 ▲11715.90 ▲0.2411.89 ▲2.0053.08 ▼0.72
Dashboard /wp-admin2,970 ▲366.07 ▲0.11155.99 ▼12.71122.87 ▲1.93
Posts /wp-admin/edit.php2,745 ▲62.85 ▲0.1371.52 ▼8.4790.46 ▼3.31
Add New Post /wp-admin/post-new.php1,506 ▼10918.66 ▼2.78421.45 ▲108.52113.96 ▼5.12
Media Library /wp-admin/upload.php1,813 ▲655.04 ▼0.03179.35 ▲8.17120.24 ▼2.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ultimate-icon-shortcodes/_/fontawesome_array.php
    • > /wp-content/plugins/ultimate-icon-shortcodes/overlay.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ultimate-icon-shortcodes/index.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Requires at least: Invalid plugin version format
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === ultimate-icon-shortcodes === )
You can take inspiration from this readme.txt

ultimate-icon-shortcodes/index.php 85% from 13 tests

This is the main PHP file of "Ultimate Icon Shortcodes - LITE" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Requires at least: Required version number formatted incorrectly (ex. "7.0" instead of "3")
  • Main file name: The principal plugin file should be the same as the plugin slug ("ultimate-icon-shortcodes.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected4,491 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS717723,487
PHP38422538
SVG100399
JavaScript130867

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
20x20.png1.93KB0.97KB▼ 49.57%