84% wp-ionic-icons

Code Review | WP Ionic Icons

WordPress plugin WP Ionic Icons scored84%from 54 tests.

About plugin

  • Plugin page: wp-ionic-icons
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.1
  • WordPress version: 6.3.1
  • First release: Aug 9, 2015
  • Latest release: Jan 23, 2023
  • Number of updates: 20
  • Update frequency: every 136.3 days
  • Top authors: zayedbaloch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /4,012 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by WP Ionic Icons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /9.83 ▲6.321,171,962.79 ▲1,171,920.16
Dashboard /wp-admin3.37 ▼0.0252.58 ▼16.48
Posts /wp-admin/edit.php3.48 ▲0.0848.86 ▲0.26
Add New Post /wp-admin/post-new.php5.95 ▲0.0290.80 ▼9.03
Media Library /wp-admin/upload.php3.29 ▲0.0238.79 ▲5.14

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4,075 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

WP Ionic Icons: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,959 ▲19814.28 ▼0.0731.52 ▲29.7148.56 ▲4.50
Dashboard /wp-admin2,200 ▲235.64 ▲0.0697.79 ▲7.0545.44 ▲5.76
Posts /wp-admin/edit.php2,099 ▼12.00 ▼0.0134.30 ▼2.0436.78 ▼1.58
Add New Post /wp-admin/post-new.php1,528 ▼323.19 ▼0.02686.04 ▲29.9361.01 ▲6.05
Media Library /wp-admin/upload.php1,402 ▲84.10 ▼0.11103.00 ▲6.6246.98 ▲1.55

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • 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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-ionic-icons/wp-ionic-icons.php

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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Shortcodes), #2 (Shortcodes result), #3 (Menu), #4 (Widget)
You can take inspiration from this readme.txt

wp-ionic-icons/wp-ionic-icons.php 92% from 13 tests

The entry point to "WP Ionic Icons" version 2.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 145 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin21,812 lines of code in 1,853 files:
LanguageFilesBlank linesComment linesLines of code
JSON30011,051
JavaScript47867513,357
SVG1,790003,135
HTML1202,717
TypeScript804071,394
CSS3379104
PHP1161354

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
2 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png45.98KB17.23KB▼ 62.53%
screenshot-1.png90.38KB30.63KB▼ 66.12%