93% wp-elusive-iconfont

Code Review | WP Elusive Iconfont

WordPress plugin WP Elusive Iconfont scored 93% from 54 tests.

About plugin

  • Plugin page: wp-elusive-iconfont
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 5.9.2
  • First release: Jan 14, 2013
  • Latest release: Apr 17, 2014
  • Number of updates: 8
  • Update frequency: every 57.1 days
  • Top authors: ZGani (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active / 2,231 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼299.54ms] Passed 4 tests

A check of server-side resources used by WP Elusive Iconfont
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0554.72 ▲5.63
Dashboard /wp-admin3.43 ▲0.0332.04 ▼4.34
Posts /wp-admin/edit.php3.66 ▲0.0241.24 ▲5.57
Add New Post /wp-admin/post-new.php6.90 ▼0.0790.39 ▼1,199.00
Media Library /wp-admin/upload.php3.31 ▲0.0225.15 ▼0.40

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Elusive Iconfont
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,791 ▲4715.96 ▲0.246.64 ▼0.022.18 ▲0.05
Dashboard /wp-admin2,892 ▲346.05 ▼0.13115.68 ▼20.24155.59 ▼5.77
Posts /wp-admin/edit.php2,694 ▲93.24 ▲0.0164.64 ▼0.09139.16 ▼1.48
Add New Post /wp-admin/post-new.php1,760 ▲5522.26 ▲2.31423.78 ▼43.34155.53 ▼0.77
Media Library /wp-admin/upload.php1,698 ▲65.52 ▲0.05139.54 ▼1.67189.72 ▲6.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

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 no errors were found, this is by no means 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
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-elusive-iconfont/assets/tinymce-plugin.php
    • > /wp-content/plugins/wp-elusive-iconfont/wpelusiveiconfont.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Full Elusive Inconfont List) image not found
Please take inspiration from this readme.txt

wp-elusive-iconfont/wpelusiveiconfont.php 85% from 13 tests

The primary PHP file in "WP Elusive Iconfont" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-elusive-iconfont.php" instead of "wpelusiveiconfont.php")
  • Description: The description should be shorter than 140 characters (currently 143 characters long)

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
No dangerous file extensions were detected3,801 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS35961,907
LESS1115885
SVG200566
JavaScript1917388
PHP2193055

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.13MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Elusive-icons.png134.45KB72.22KB▼ 46.28%
img/elusive.png0.71KB0.69KB▼ 2.47%