93% admin-icons-manager

Code Review | Admin Icons Manager

WordPress plugin Admin Icons Manager scored 93% from 54 tests.

About plugin

  • Plugin page: admin-icons-manager
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.4
  • WordPress version: 5.8.1
  • First release: Mar 3, 2020
  • Latest release: Apr 27, 2020
  • Number of updates: 7
  • Update frequency: every 7.9 days
  • Top authors: javiercrego (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 335 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.11MB] [CPU: ▼185.33ms] Passed 4 tests

A check of server-side resources used by Admin Icons Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0122.03 ▼0.97
Dashboard /wp-admin3.09 ▲0.0230.01 ▼7.35
Posts /wp-admin/edit.php3.21 ▲0.1028.62 ▲0.94
Add New Post /wp-admin/post-new.php4.98 ▼0.4654.66 ▼730.28
Media Library /wp-admin/upload.php2.99 ▼0.0120.35 ▼2.72

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 45 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Icons Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,938 ▲33718.22 ▲2.175.42 ▲0.4777.48 ▲1.26
Dashboard /wp-admin3,204 ▲3098.65 ▲2.49149.10 ▲16.77162.92 ▼11.95
Posts /wp-admin/edit.php3,050 ▲3075.36 ▲2.1392.01 ▲23.96149.85 ▲6.67
Add New Post /wp-admin/post-new.php2,373 ▼1,33118.23 ▼0.48374.77 ▼94.99164.29 ▲0.31
Media Library /wp-admin/upload.php1,833 ▲846.31 ▲0.80114.78 ▼34.04183.59 ▲0.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
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
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/admin-icons-manager/ai-manager.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% 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:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in admin-icons-manager/assets to your readme.txt
The official readme.txt might help

admin-icons-manager/ai-manager.php 77% from 13 tests

"Admin Icons Manager" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("admin-icons-manager.php" instead of "ai-manager.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected72,763 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
JSON20056,793
SVG40129,080
CSS92,043865,071
HTML157001,209
PHP330184583
JavaScript4183927

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity15.67
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity3.93
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods15
▷ Static methods1493.33%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/CregoTech.png6.24KB3.16KB▼ 49.39%
images/no-photo.png7.52KB3.89KB▼ 48.25%