84% simple-icons

Code Review | Popular Brand Icons - Simple Icons

WordPress plugin Popular Brand Icons - Simple Icons scored84%from 54 tests.

About plugin

  • Plugin page: simple-icons
  • Plugin version: 2.8.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-6.3
  • WordPress version: 6.3.1
  • First release: Dec 12, 2017
  • Latest release: Nov 20, 2023
  • Number of updates: 114
  • Update frequency: every 19.0 days
  • Top authors: TJTaylor (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

5,000+ active /67,832 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.57ms] Passed 4 tests

This is a short check of server-side resources used by Popular Brand Icons - Simple Icons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0835.18 ▲0.94
Dashboard /wp-admin3.38 ▲0.0749.80 ▼0.53
Posts /wp-admin/edit.php3.50 ▲0.1347.52 ▼3.67
Add New Post /wp-admin/post-new.php5.96 ▲0.0784.30 ▼13.22
Media Library /wp-admin/upload.php3.31 ▲0.0734.05 ▼0.87
Simple Icons /wp-admin/options-general.php?page=simpleicons3.2734.08
Simple Icons /wp-admin/index.php?page=simpleicons-welcome3.2730.36

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Popular Brand Icons - Simple Icons
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3814.04 ▼0.681.58 ▼0.0239.31 ▼0.04
Dashboard /wp-admin2,202 ▲255.49 ▼0.1396.30 ▲5.2541.47 ▼1.94
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0536.54 ▼6.8830.79 ▼4.10
Add New Post /wp-admin/post-new.php1,535 ▲723.35 ▲0.17664.73 ▼27.7455.38 ▼0.36
Media Library /wp-admin/upload.php1,410 ▲74.18 ▼0.0496.27 ▼5.1540.25 ▼3.83
Simple Icons /wp-admin/options-general.php?page=simpleicons2,3831.9841.2339.75
Simple Icons /wp-admin/index.php?page=simpleicons-welcome1,3769.01293.25100.99

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-icons/inc/welcome-screen.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/simple-icons/simple-icons.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-icons/inc/admin-page.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: menu icons, add social media icons to wordpress, icons shortcodes, social media icons, svg icons

simple-icons/simple-icons.php Passed 13 tests

The primary PHP file in "Popular Brand Icons - Simple Icons" version 2.8.4 is used by WordPress to initiate all plugin functionality
116 characters long description:
An easy to use SVG icons plugin with over 500+ brand icons. Use these icons in your menus, widgets, posts, or pages.

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
Everything looks great! No dangerous files found in this plugin16,734 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JSON10016,126
PHP510367444
CSS163162
JavaScript1001
SVG1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity20.00
▷ Minimum class complexity17.00
▷ Maximum class complexity23.00
Average method complexity4.17
▷ Minimum method complexity2.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods541.67%
▷ Public methods325.00%
▷ Protected methods00.00%
▷ Private methods975.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin