84% customizer-social-icons

Code Review | Customizer Social Icons

WordPress plugin Customizer Social Icons scored84%from 54 tests.

About plugin

  • Plugin page: customizer-social...
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.9.8
  • WordPress version: 6.3.1
  • First release: Nov 25, 2016
  • Latest release: Sep 8, 2018
  • Number of updates: 12
  • Update frequency: every 54.3 days
  • Top authors: timph (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /1,745 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 gracefully, with no errors

Server metrics [RAM: ▲0.21MB] [CPU: ▼9.51ms] Passed 4 tests

This is a short check of server-side resources used by Customizer Social Icons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2349.41 ▲7.38
Dashboard /wp-admin3.50 ▲0.2050.75 ▼13.52
Posts /wp-admin/edit.php3.62 ▲0.2649.08 ▼2.50
Add New Post /wp-admin/post-new.php6.09 ▲0.2091.43 ▼25.59
Media Library /wp-admin/upload.php3.43 ▲0.2040.51 ▲3.59

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Customizer Social Icons
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.35 ▼0.301.82 ▲0.0643.71 ▲1.94
Dashboard /wp-admin2,198 ▲215.59 ▲0.0691.86 ▼4.4640.89 ▼1.04
Posts /wp-admin/edit.php2,100 ▲32.02 ▼0.1438.50 ▲2.1734.83 ▲1.73
Add New Post /wp-admin/post-new.php1,526 ▼223.16 ▲0.10610.54 ▼20.0351.44 ▲6.34
Media Library /wp-admin/upload.php1,394 ▼64.20 ▲0.02100.25 ▼4.4541.99 ▼9.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Interface 'Customizer_Social_Icons_Configs_Interface' not found in wp-content/plugins/customizer-social-icons/includes/class-customizer-social-icons-configs.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_normalize_path() in wp-content/plugins/customizer-social-icons/customizer-social-icons.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_normalize_path() in wp-content/plugins/customizer-social-icons/includes/configs/base.config.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: Screenshot #7 (**Social Icon Colors** - Colors can be changed for your social icons in the WordPress customizer controls as well.) image missing
You can take inspiration from this readme.txt

customizer-social-icons/customizer-social-icons.php Passed 13 tests

The principal PHP file in "Customizer Social Icons" v. 0.4 is loaded by WordPress automatically on each request
92 characters long description:
Add and remove Fontawesome Social Media Icons in menus in the WordPress customizer natively!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin3,700 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
CSS4675101,578
PHP151484831,236
SVG100685
JavaScript23583201

PHP code Passed 2 tests

An short overview of 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.18
Average class complexity5.12
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods48
▷ Static methods00.00%
▷ Public methods3062.50%
▷ Protected methods12.08%
▷ Private methods1735.42%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin