83% admin-icons-manager

Code Review | Admin Icons Manager

WordPress plugin Admin Icons Manager scored83%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: 6.3.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 /545 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Admin Icons Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1142.75 ▲0.36
Dashboard /wp-admin3.44 ▲0.1354.66 ▼2.07
Posts /wp-admin/edit.php3.56 ▲0.2054.89 ▲4.93
Add New Post /wp-admin/post-new.php5.56 ▼0.3378.99 ▼25.34
Media Library /wp-admin/upload.php3.32 ▲0.0937.24 ▼0.40

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Admin Icons Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,986 ▲22515.36 ▲1.361.78 ▲0.1146.85 ▲2.50
Dashboard /wp-admin2,389 ▲2126.73 ▲1.09132.45 ▲40.1742.42 ▼1.06
Posts /wp-admin/edit.php2,323 ▲2233.71 ▲1.7661.72 ▲16.3635.26 ▼2.24
Add New Post /wp-admin/post-new.php1,578 ▲4021.30 ▼1.73670.56 ▼19.6836.65 ▼22.53
Media Library /wp-admin/upload.php1,457 ▲574.73 ▲0.5298.30 ▼10.0442.44 ▼4.81

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% 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 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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 smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Screenshots: Add descriptions for 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

The entry point to "Admin Icons Manager" version 1.0.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file 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 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin72,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

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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/no-photo.png7.52KB3.89KB▼ 48.25%
images/CregoTech.png6.24KB3.16KB▼ 49.39%