79% svg-social-menu

Code Review | SVG Social Menu

WordPress plugin SVG Social Menu scored79%from 54 tests.

About plugin

  • Plugin page: svg-social-menu
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-5.2.3
  • WordPress version: 6.3.1
  • First release: Jan 9, 2016
  • Latest release: Sep 27, 2019
  • Number of updates: 18
  • Update frequency: every 75.4 days
  • Top authors: FlorianBrinkmann (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /10,885 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.30ms] Passed 4 tests

An overview of server-side resources used by SVG Social Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.14 ▼4.14
Dashboard /wp-admin3.36 ▲0.0551.28 ▼1.33
Posts /wp-admin/edit.php3.41 ▲0.0549.93 ▼4.34
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.98 ▼23.37
Media Library /wp-admin/upload.php3.28 ▲0.0540.87 ▼0.42

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_svg_social_menu_widget
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for SVG Social Menu
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.15 ▼1.081.70 ▼0.0241.61 ▼0.40
Dashboard /wp-admin2,209 ▲214.86 ▼0.0199.83 ▼9.3143.72 ▲0.49
Posts /wp-admin/edit.php2,092 ▼02.01 ▲0.0135.59 ▼4.6335.34 ▼0.52
Add New Post /wp-admin/post-new.php1,514 ▼1417.59 ▼0.74701.68 ▲60.8754.17 ▼0.92
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.03112.44 ▲3.5448.88 ▲3.94

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_svg_social_menu_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/svg-social-menu/svg-social-menu.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/svg-social-menu/classes/class-svg-social-menu-walker.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/svg-social-menu/classes/class-svg-social-menu-widget.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: custom nav menu, menu, vector, svg, social...

svg-social-menu/svg-social-menu.php Passed 13 tests

Analyzing the main PHP file in "SVG Social Menu" version 2.0.0
89 characters long description:
Display your social media profile links with vector icons using a custom navigation menu.

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
No dangerous file extensions were detected286 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP324133205
JavaScript113380
SVG1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.00
▷ Minimum class complexity5.00
▷ Maximum class complexity15.00
Average method complexity4.60
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
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
No PNG images were found in this plugin