90% admin-columns-icons-addon

Code Review | Admin Columns - Icons Add-on

WordPress plugin Admin Columns - Icons Add-on scored90%from 54 tests.

About plugin

  • Plugin page: admin-columns-ico...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2014
  • Latest release: Aug 21, 2016
  • Number of updates: 7
  • Update frequency: every 110.4 days
  • Top authors: engelen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,260 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.75ms] Passed 4 tests

This is a short check of server-side resources used by Admin Columns - Icons Add-on
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0842.36 ▲0.85
Dashboard /wp-admin3.38 ▲0.0848.86 ▼2.45
Posts /wp-admin/edit.php3.43 ▲0.0745.11 ▼8.33
Add New Post /wp-admin/post-new.php5.98 ▲0.0992.13 ▼17.05
Media Library /wp-admin/upload.php3.31 ▲0.0736.12 ▲3.25

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

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

Browser metrics Passed 4 tests

Admin Columns - Icons Add-on: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.83 ▲0.531.84 ▼0.3542.80 ▼1.88
Dashboard /wp-admin2,206 ▲185.86 ▲0.9695.40 ▼22.3536.91 ▼10.73
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0436.10 ▼5.7835.35 ▲1.07
Add New Post /wp-admin/post-new.php1,530 ▼323.27 ▼0.02618.29 ▼61.7951.10 ▼21.22
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.0495.88 ▼2.0442.68 ▼2.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: columns, icon, admin columns, overview, addon...

admin-columns-icons-addon/cac-addon-icons.php 92% from 13 tests

Analyzing the main PHP file in "Admin Columns - Icons Add-on" version 1.1
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("admin-columns-icons-addon.php" instead of "cac-addon-icons.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected503 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JSON100237
PHP13293167
JavaScript118153
CSS19546

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.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
PNG images were not found in this plugin